1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Sort results to fix nondeterministic test failures

https://buildkite.com/rails/rails/builds/67891#867b2766-7984-4280-90d6-7f0412e2d239/1015-1026
This commit is contained in:
Eugene Kenny 2020-03-29 05:30:25 +01:00
parent dabb587cbb
commit ddaa24ac70

View file

@ -193,7 +193,7 @@ class HasManyThroughAssociationsTest < ActiveRecord::TestCase
post2 = Post.includes(:categories).first
assert_operator post.categories.length, :>, 0
assert_equal post2.categories, post.categories
assert_equal post2.categories.sort_by(&:id), post.categories.sort_by(&:id)
end
def test_include?