aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/relations_test.rb
diff options
context:
space:
mode:
authorThiago Almeida <tapgyn@gmail.com>2012-03-16 11:30:24 -0300
committerThiago Almeida <tapgyn@gmail.com>2012-03-16 11:30:24 -0300
commit964ed6e802018005f6ffc9a95d13dea68f26fdb7 (patch)
treee21964374416bd50b6484e238b4f0f693ff8bac6 /activerecord/test/cases/relations_test.rb
parent4498f93e68bfdc0a02285f683b0c7cdc016f5898 (diff)
downloadrails-964ed6e802018005f6ffc9a95d13dea68f26fdb7.tar.gz
rails-964ed6e802018005f6ffc9a95d13dea68f26fdb7.tar.bz2
rails-964ed6e802018005f6ffc9a95d13dea68f26fdb7.zip
test relation presence fix
Diffstat (limited to 'activerecord/test/cases/relations_test.rb')
-rw-r--r--activerecord/test/cases/relations_test.rb8
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?