diff options
Diffstat (limited to 'activerecord/test/cases/associations/has_many_through_associations_test.rb')
-rw-r--r-- | activerecord/test/cases/associations/has_many_through_associations_test.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/activerecord/test/cases/associations/has_many_through_associations_test.rb b/activerecord/test/cases/associations/has_many_through_associations_test.rb index 149c9576ca..29f6166b00 100644 --- a/activerecord/test/cases/associations/has_many_through_associations_test.rb +++ b/activerecord/test/cases/associations/has_many_through_associations_test.rb @@ -47,7 +47,8 @@ class HasManyThroughAssociationsTest < ActiveRecord::TestCase club1 = Club.includes(:members).find_by_id club.id left, right = club1.members.map(&:id) - assert_operator left, :>, right + assert_equal [member1, member2].sort_by(&:id), + club1.members.sort_by(&:id) end def make_model(name) |