Skip to content
Browse files

:scissors:

  • Loading branch information...
1 parent 2b7b5f5 commit fa8a78d12ee470eb29d314a4f9ae5318bad4ae09 @rafaelfranca rafaelfranca committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/test/cases/associations/eager_test.rb
View
2 activerecord/test/cases/associations/eager_test.rb
@@ -218,7 +218,7 @@ def test_finding_with_includes_on_belongs_to_association_with_same_include_inclu
def test_finding_with_includes_on_null_belongs_to_association_with_same_include_includes_only_once
post = posts(:welcome)
post.update!(author: nil)
- post = assert_queries(1) { Post.all.merge!(includes: {author_with_address: :author_address}).find(post.id) }
+ post = assert_queries(1) { Post.all.merge!(includes: {author_with_address: :author_address}).find(post.id) }
# find the post, then find the author which is null so no query for the author or address
assert_no_queries do
assert_equal nil, post.author_with_address

0 comments on commit fa8a78d

Please sign in to comment.
Something went wrong with that request. Please try again.