aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations_test.rb
diff options
context:
space:
mode:
authorSean Griffin <sean@thoughtbot.com>2015-01-26 15:49:29 -0700
committerSean Griffin <sean@thoughtbot.com>2015-01-26 15:49:29 -0700
commit6a7ac40dabf4a8948418c61f307ffe52ddcb48f2 (patch)
treec123d4db35c7291db4c1ddff2473f77c2759b9a5 /activerecord/test/cases/associations_test.rb
parent9d4d2e7fc69e5eb0586e57259c2993143346a1b9 (diff)
downloadrails-6a7ac40dabf4a8948418c61f307ffe52ddcb48f2.tar.gz
rails-6a7ac40dabf4a8948418c61f307ffe52ddcb48f2.tar.bz2
rails-6a7ac40dabf4a8948418c61f307ffe52ddcb48f2.zip
Go through normal `where` logic in `AssociationScope`
This removes the need to duplicate much of the logic in `WhereClause` and `PredicateBuilder`, simplifies the code, removes the need for the connection adapter to be continuously passed around, and removes one place that cares about the internal representation of `bind_values` Part of the larger refactoring to change how binds are represented internally [Sean Griffin & anthonynavarre]
Diffstat (limited to 'activerecord/test/cases/associations_test.rb')
-rw-r--r--activerecord/test/cases/associations_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/associations_test.rb b/activerecord/test/cases/associations_test.rb
index 705f86a699..c88dc58950 100644
--- a/activerecord/test/cases/associations_test.rb
+++ b/activerecord/test/cases/associations_test.rb
@@ -141,7 +141,7 @@ class AssociationsTest < ActiveRecord::TestCase
def test_association_with_references
firm = companies(:first_firm)
- assert_equal ['foo'], firm.association_with_references.references_values
+ assert_includes firm.association_with_references.references_values, 'foo'
end
end