aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations/association_scope_test.rb
diff options
context:
space:
mode:
authorSean Griffin <sean@thoughtbot.com>2015-01-25 17:35:46 -0700
committerSean Griffin <sean@thoughtbot.com>2015-01-25 17:50:19 -0700
commit17b1b5d77342db8fe3aa064d848d46052cb4695c (patch)
treee473dff024c71ab782345394548b3b38921efab0 /activerecord/test/cases/associations/association_scope_test.rb
parentd6110799c2573080897410f9836f5aa623b197ea (diff)
downloadrails-17b1b5d77342db8fe3aa064d848d46052cb4695c.tar.gz
rails-17b1b5d77342db8fe3aa064d848d46052cb4695c.tar.bz2
rails-17b1b5d77342db8fe3aa064d848d46052cb4695c.zip
Remove all references to `where_values` in tests
Diffstat (limited to 'activerecord/test/cases/associations/association_scope_test.rb')
-rw-r--r--activerecord/test/cases/associations/association_scope_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/test/cases/associations/association_scope_test.rb b/activerecord/test/cases/associations/association_scope_test.rb
index 3e0032ec73..dd26a85e44 100644
--- a/activerecord/test/cases/associations/association_scope_test.rb
+++ b/activerecord/test/cases/associations/association_scope_test.rb
@@ -8,9 +8,9 @@ module ActiveRecord
test 'does not duplicate conditions' do
scope = AssociationScope.scope(Author.new.association(:welcome_posts),
Author.connection)
- wheres = scope.where_values.map(&:right)
- binds = scope.bind_values.map(&:last)
- wheres = scope.where_values.map(&:right).reject { |node|
+ 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