diff options
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/relations_test.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/activerecord/test/cases/relations_test.rb b/activerecord/test/cases/relations_test.rb index bbd06a1c2c..515f0b9d04 100644 --- a/activerecord/test/cases/relations_test.rb +++ b/activerecord/test/cases/relations_test.rb @@ -1245,10 +1245,10 @@ class RelationTest < ActiveRecord::TestCase assert !topics.blank? #shows count of topics and loops after loading the query should not trigger extra queries either - assert_no_queries topics.size - assert_no_queries topics.count - assert_no_queries topics.length - assert_no_queries topics.each + assert_no_queries { topics.size } + assert_no_queries { topics.count } + assert_no_queries { topics.length } + assert_no_queries { topics.each } end assert topics.loaded? |