Skip to content

Commit 3e83be7

Browse files
committed
Fix non-deterministic order dependent failure
1 parent bfd5b59 commit 3e83be7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activerecord/test/cases/relation/with_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def test_with_when_hash_with_multiple_elements_of_different_type_is_passed_as_an
3838

3939
def test_with_when_invalid_argument_is_passed
4040
assert_raises ArgumentError, match: /\AUnsupported argument type: #<Post:0x[0-9a-f]+> Post\z/ do
41-
Post.with(Post.where("tags_count > 0"))
41+
Post.with(Post.where(type: "Post"))
4242
end
4343
end
4444

0 commit comments

Comments
 (0)