diff options
-rw-r--r-- | activerecord/test/cases/relations_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/relations_test.rb b/activerecord/test/cases/relations_test.rb index 3bfbf95b0a..410b5ba5a3 100644 --- a/activerecord/test/cases/relations_test.rb +++ b/activerecord/test/cases/relations_test.rb @@ -421,7 +421,7 @@ class RelationTest < ActiveRecord::TestCase end def test_null_relation_in_where_condition - assert_operator 0, :<, Comment.count # precondition, make sure there are comments. + assert_operator Comment.count, :>, 0 # precondition, make sure there are comments. assert_equal 0, Comment.where(post_id: Post.none).to_a.size end |