mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Fix expected queries in relation tests.
This commit is contained in:
@@ -300,7 +300,7 @@ class RelationTest < ActiveRecord::TestCase
|
||||
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 @@ class RelationTest < ActiveRecord::TestCase
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user