brianhempel / active_record_union

UNIONs in ActiveRecord! Adds proper union and union_all methods to ActiveRecord::Relation.
Other
423 stars 41 forks source link

Test suite depends on activerecord version #2

Closed pic closed 9 years ago

pic commented 9 years ago

it is green with activerecord 4.0.13, 1 failure with activerecord 4.0.8, 6 failures with activerecord 4.2.0 (but union apparently works without problems).

Different versions of activerecord build different SQL statement, but the test suite is comparing #to_sql to an expected SQL string.

I have no idea how this could be easily fixed.

brianhempel commented 9 years ago

All such problems have solutions. Bug me in a week if I haven't gotten around to fixing it yet.

brianhempel commented 9 years ago

I updated the tests to match Rails 4.2 output. I am not so concerned about older AR versions since the function of the gem is unchanged.