Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

test relation presence fix

  • Loading branch information...
commit 964ed6e802018005f6ffc9a95d13dea68f26fdb7 1 parent 4498f93
James Pinto thejamespinto authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 activerecord/test/cases/relations_test.rb
8 activerecord/test/cases/relations_test.rb
View
@@ -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?
Please sign in to comment.
Something went wrong with that request. Please try again.