diff options
author | Thiago Almeida <tapgyn@gmail.com> | 2012-03-16 11:30:24 -0300 |
---|---|---|
committer | Thiago Almeida <tapgyn@gmail.com> | 2012-03-16 11:30:24 -0300 |
commit | 964ed6e802018005f6ffc9a95d13dea68f26fdb7 (patch) | |
tree | e21964374416bd50b6484e238b4f0f693ff8bac6 /activerecord/test | |
parent | 4498f93e68bfdc0a02285f683b0c7cdc016f5898 (diff) | |
download | rails-964ed6e802018005f6ffc9a95d13dea68f26fdb7.tar.gz rails-964ed6e802018005f6ffc9a95d13dea68f26fdb7.tar.bz2 rails-964ed6e802018005f6ffc9a95d13dea68f26fdb7.zip |
test relation presence fix
Diffstat (limited to 'activerecord/test')
-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? |