aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations/association_scope_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/cases/associations/association_scope_test.rb')
-rw-r--r--activerecord/test/cases/associations/association_scope_test.rb5
1 files changed, 0 insertions, 5 deletions
diff --git a/activerecord/test/cases/associations/association_scope_test.rb b/activerecord/test/cases/associations/association_scope_test.rb
index dd26a85e44..fc5dbd0890 100644
--- a/activerecord/test/cases/associations/association_scope_test.rb
+++ b/activerecord/test/cases/associations/association_scope_test.rb
@@ -8,12 +8,7 @@ module ActiveRecord
test 'does not duplicate conditions' do
scope = AssociationScope.scope(Author.new.association(:welcome_posts),
Author.connection)
- wheres = scope.where_clause.predicates.map(&:right)
binds = scope.where_clause.binds.map(&:last)
- wheres.reject! { |node|
- Arel::Nodes::BindParam === node
- }
- assert_equal wheres.uniq, wheres
assert_equal binds.uniq, binds
end
end