You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
When I run
bundle exec rspec
I get the following failures: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.
The text was updated successfully, but these errors were encountered: