aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2014-09-11 08:07:35 +0200
committerYves Senn <yves.senn@gmail.com>2014-09-11 08:07:35 +0200
commite581b011165766a64a6749fb1465d76e90c14cb5 (patch)
tree116f35287f3d0e1a3af0899afc13d3dce563f69f /activerecord
parent16868b53f9533ba48ca33bb694fade390f0ffe7e (diff)
downloadrails-e581b011165766a64a6749fb1465d76e90c14cb5.tar.gz
rails-e581b011165766a64a6749fb1465d76e90c14cb5.tar.bz2
rails-e581b011165766a64a6749fb1465d76e90c14cb5.zip
switch `assert_operator` arguments as discussed in #16860.
Working with two different machines is hard :sweat:
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/test/cases/relations_test.rb2
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