Fix random CI failure due to non-deterministic sorting order

https://travis-ci.org/rails/rails/jobs/459534536#L1280
This commit is contained in:
Ryuta Kamizono 2018-11-26 11:08:57 +09:00
parent bbe1a9bcba
commit 82fc7cdef5

@ -2002,8 +2002,8 @@ def test_dynamic_find_should_respect_association_order_for_through
end
def test_has_many_through_respects_hash_conditions
assert_equal authors(:david).hello_posts, authors(:david).hello_posts_with_hash_conditions
assert_equal authors(:david).hello_post_comments, authors(:david).hello_post_comments_with_hash_conditions
assert_equal authors(:david).hello_posts.sort_by(&:id), authors(:david).hello_posts_with_hash_conditions.sort_by(&:id)
assert_equal authors(:david).hello_post_comments.sort_by(&:id), authors(:david).hello_post_comments_with_hash_conditions.sort_by(&:id)
end
def test_include_uses_array_include_after_loaded