aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2017-06-28 14:41:59 -0400
committerGitHub <noreply@github.com>2017-06-28 14:41:59 -0400
commit33de72667a026f8a9c188189bcc191976a7c397a (patch)
treec3f33e633acb9f8caa2c2cf06f966ab89e3952b7 /activerecord/test/cases/associations
parentf94b2e850330ae9b69c874d1fad8a4a38d736d36 (diff)
parenteacec5defe89dd9593d44f4831aa861a2e0e55d4 (diff)
downloadrails-33de72667a026f8a9c188189bcc191976a7c397a.tar.gz
rails-33de72667a026f8a9c188189bcc191976a7c397a.tar.bz2
rails-33de72667a026f8a9c188189bcc191976a7c397a.zip
Merge pull request #29610 from kamipo/dont_passing_klass_connection_to_association_scope
Don't passing `klass.connection` to `AssociationScope`
Diffstat (limited to 'activerecord/test/cases/associations')
-rw-r--r--activerecord/test/cases/associations/association_scope_test.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/activerecord/test/cases/associations/association_scope_test.rb b/activerecord/test/cases/associations/association_scope_test.rb
index c322333f6d..c54542ff7b 100644
--- a/activerecord/test/cases/associations/association_scope_test.rb
+++ b/activerecord/test/cases/associations/association_scope_test.rb
@@ -6,8 +6,7 @@ module ActiveRecord
module Associations
class AssociationScopeTest < ActiveRecord::TestCase
test "does not duplicate conditions" do
- scope = AssociationScope.scope(Author.new.association(:welcome_posts),
- Author.connection)
+ scope = AssociationScope.scope(Author.new.association(:welcome_posts))
binds = scope.where_clause.binds.map(&:value)
assert_equal binds.uniq, binds
end