Permalink
Browse files

Merge pull request #30133 from kamipo/fix_random_ci_failure

Fix random CI failure due to non-deterministic sorting order
  • Loading branch information...
rafaelfranca committed Aug 8, 2017
2 parents 507f3ef + 75cfb3d commit 7e64d6d2aacc4c742fa0054d5640858f04539836
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/test/cases/associations/has_many_through_associations_test.rb
@@ -817,7 +817,7 @@ def test_has_many_association_through_a_has_many_association_to_self
sarah = Person.create!(first_name: "Sarah", primary_contact_id: people(:susan).id, gender: "F", number1_fan_id: 1)
john = Person.create!(first_name: "John", primary_contact_id: sarah.id, gender: "M", number1_fan_id: 1)
assert_equal sarah.agents, [john]
assert_equal people(:susan).agents.flat_map(&:agents), people(:susan).agents_of_agents
assert_equal people(:susan).agents.flat_map(&:agents).sort, people(:susan).agents_of_agents.sort
end
def test_associate_existing_with_nonstandard_primary_key_on_belongs_to

0 comments on commit 7e64d6d

Please sign in to comment.