We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfd5b59 commit 3e83be7Copy full SHA for 3e83be7
activerecord/test/cases/relation/with_test.rb
@@ -38,7 +38,7 @@ def test_with_when_hash_with_multiple_elements_of_different_type_is_passed_as_an
38
39
def test_with_when_invalid_argument_is_passed
40
assert_raises ArgumentError, match: /\AUnsupported argument type: #<Post:0x[0-9a-f]+> Post\z/ do
41
- Post.with(Post.where("tags_count > 0"))
+ Post.with(Post.where(type: "Post"))
42
end
43
44
0 commit comments