Permalink
Browse files

test relation presence fix

  • Loading branch information...
1 parent 4498f93 commit 964ed6e802018005f6ffc9a95d13dea68f26fdb7 @thejamespinto thejamespinto committed Mar 16, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 activerecord/test/cases/relations_test.rb
@@ -1245,10 +1245,10 @@ def test_presence
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?

0 comments on commit 964ed6e

Please sign in to comment.