Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specs failing #13

Open
lukeasrodgers opened this issue Jun 23, 2014 · 0 comments
Open

Specs failing #13

lukeasrodgers opened this issue Jun 23, 2014 · 0 comments

Comments

@lukeasrodgers
Copy link
Contributor

When I run bundle exec rspec I get the following failures:

Failures:

  1) FuzzyMatch::CachedResult works with weighted_average
     Failure/Error: aircraft.flight_segments.weighted_average(:seats, :weighted_by => :passengers).should == 5.45455
     ActiveRecord::StatementInvalid:
       Mysql2::Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' `flight_segments`, 'passengers', `flight_segments`.`passengers`, 0, `flight_seg' at line 1: SELECT SUM('flight_segments', `flight_segments`, 'passengers', `flight_segments`.`passengers`, 0, `flight_segments`, 'seats', `flight_segments`.`seats`, `flight_segments`.`passengers` * `flight_segments`.`seats`, 1.0, `flight_segments`.`passengers` * `flight_segments`.`seats` * 1.0) / SUM(`flight_segments`.`passengers`) FROM `flight_segments`  WHERE `flight_segments`.`aircraft_description` IN ('bing 747', 'BORING 747200') AND `flight_segments`.`seats` IS NOT NULL AND `flight_segments`.`passengers` > 0
     # ./spec/cache_spec.rb:115:in `block (2 levels) in <top (required)>'

  2) FuzzyMatch::Rule::Grouping has chains
     Failure/Error: h.xjoin?(r('grund hyatt'), r('grand hyatt')).should == true
       expected: true
            got: false (using ==)
     # ./spec/grouping_spec.rb:33:in `block (2 levels) in <top (required)>'

Running on OSX 10.9.3, ruby 1.9.3-p392, and mysql Ver 14.14 Distrib 5.6.16, for osx10.9.

For what it's worth, I get the same failures when trying the specs with sqlite3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant