aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases
diff options
context:
space:
mode:
authorErnie Miller <ernie@metautonomo.us>2010-05-03 20:47:42 -0400
committerAaron Patterson <aaron.patterson@gmail.com>2010-12-14 16:16:34 -0800
commitc81af00a7ab64ec1159e8b319f8498ea5b9037c7 (patch)
tree94d7c48d117643418c402c4226a97aa942d3e10b /activerecord/test/cases
parent00c893d3b86be3a141c21ed065e085adbb26062a (diff)
downloadrails-c81af00a7ab64ec1159e8b319f8498ea5b9037c7.tar.gz
rails-c81af00a7ab64ec1159e8b319f8498ea5b9037c7.tar.bz2
rails-c81af00a7ab64ec1159e8b319f8498ea5b9037c7.zip
Fix hm:t to self table aliasing in construct_scope
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r--activerecord/test/cases/associations/has_many_through_associations_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/associations/has_many_through_associations_test.rb b/activerecord/test/cases/associations/has_many_through_associations_test.rb
index fe60e676d6..34ae297275 100644
--- a/activerecord/test/cases/associations/has_many_through_associations_test.rb
+++ b/activerecord/test/cases/associations/has_many_through_associations_test.rb
@@ -392,7 +392,7 @@ class HasManyThroughAssociationsTest < ActiveRecord::TestCase
sarah = Person.create!(:first_name => 'Sarah', :primary_contact_id => people(:susan).id, :gender => 'F', :number1_fan_id => 1)
john = Person.create!(:first_name => 'John', :primary_contact_id => sarah.id, :gender => 'M', :number1_fan_id => 1)
assert_equal sarah.agents, [john]
- assert_equal people(:susan).agents_of_agents, [john]
+ assert_equal people(:susan).agents.map(&:agents).flatten, people(:susan).agents_of_agents
end
def test_collection_singular_ids_getter_with_string_primary_keys