aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations/nested_has_many_through_associations_test.rb
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2010-10-12 16:54:43 +0100
committerJon Leighton <j@jonathanleighton.com>2010-10-12 16:54:43 +0100
commit61073861856110b4a842a4d5e1033698fd52901f (patch)
tree758637455f28d5cdbcbcd7a762354cb6d915746c /activerecord/test/cases/associations/nested_has_many_through_associations_test.rb
parent6a016a551109ed2ef78fff8f74aef6b1f4ae96a9 (diff)
downloadrails-61073861856110b4a842a4d5e1033698fd52901f.tar.gz
rails-61073861856110b4a842a4d5e1033698fd52901f.tar.bz2
rails-61073861856110b4a842a4d5e1033698fd52901f.zip
Rename some tests for consistency
Diffstat (limited to 'activerecord/test/cases/associations/nested_has_many_through_associations_test.rb')
-rw-r--r--activerecord/test/cases/associations/nested_has_many_through_associations_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/test/cases/associations/nested_has_many_through_associations_test.rb b/activerecord/test/cases/associations/nested_has_many_through_associations_test.rb
index c1e8a4b1bf..bc0fb8582d 100644
--- a/activerecord/test/cases/associations/nested_has_many_through_associations_test.rb
+++ b/activerecord/test/cases/associations/nested_has_many_through_associations_test.rb
@@ -54,7 +54,7 @@ class NestedHasManyThroughAssociationsTest < ActiveRecord::TestCase
# has_many through
# Source: has_many through
# Through: has_many
- def test_has_many_through_a_has_many_through_association_on_source_reflection
+ def test_has_many_through_has_many_with_has_many_through_source_reflection
author = authors(:david)
assert_equal [tags(:general), tags(:general)], author.tags
@@ -73,7 +73,7 @@ class NestedHasManyThroughAssociationsTest < ActiveRecord::TestCase
# has_many through
# Source: has_many
# Through: has_many through
- def test_has_many_through_a_has_many_through_association_on_through_reflection
+ def test_has_many_through_has_many_through_with_has_many_source_reflection
author = authors(:david)
assert_equal [subscribers(:first), subscribers(:second), subscribers(:second)], author.subscribers
@@ -102,7 +102,7 @@ class NestedHasManyThroughAssociationsTest < ActiveRecord::TestCase
# has_many through
# Source: has_one
# Through: has_one through
- def test_has_many_through_has_one_through
+ def test_has_many_through_has_one_through_with_has_one_source_reflection
assert_equal [sponsors(:moustache_club_sponsor_for_groucho)], members(:groucho).nested_sponsors
members = Member.joins(:nested_sponsors).where('sponsors.id' => sponsors(:moustache_club_sponsor_for_groucho).id)