Browse files

Fix expected queries in relation tests.

  • Loading branch information...
1 parent c13b7c4 commit 90a850aea4c2c04df22be0aaad1144468fcc8078 @miloops miloops committed Feb 15, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/test/cases/relations_test.rb
View
4 activerecord/test/cases/relations_test.rb
@@ -300,7 +300,7 @@ def test_find_with_preloaded_associations
assert posts.first.author
end
- assert_queries(ActiveRecord::IdentityMap.enabled? ? 2 : 3) do
+ assert_queries(ActiveRecord::IdentityMap.enabled? ? 1 : 3) do
posts = Post.preload(:author, :comments).to_a
assert posts.first.author
assert posts.first.comments.first
@@ -323,7 +323,7 @@ def test_find_with_included_associations
assert posts.first.author
end
- assert_queries(ActiveRecord::IdentityMap.enabled? ? 2 : 3) do
+ assert_queries(ActiveRecord::IdentityMap.enabled? ? 1 : 3) do
posts = Post.includes(:author, :comments).to_a
assert posts.first.author
assert posts.first.comments.first

0 comments on commit 90a850a

Please sign in to comment.