diff options
author | Mehmet Emin İNAÇ <mehmetemininac@gmail.com> | 2015-07-12 03:03:05 +0300 |
---|---|---|
committer | Mehmet Emin İNAÇ <mehmetemininac@gmail.com> | 2015-07-22 00:51:23 +0300 |
commit | 4f1ec3ac96d4593063603306d2548e0206124d5c (patch) | |
tree | 52f4969acad2b611f410e6bcf527794e6f03b3e2 /activerecord/test/cases/associations/nested_through_associations_test.rb | |
parent | efd2410b3973671f430f04a9ca1501d38b53acf0 (diff) | |
download | rails-4f1ec3ac96d4593063603306d2548e0206124d5c.tar.gz rails-4f1ec3ac96d4593063603306d2548e0206124d5c.tar.bz2 rails-4f1ec3ac96d4593063603306d2548e0206124d5c.zip |
Fix misleading errors for has_one through relations
Diffstat (limited to 'activerecord/test/cases/associations/nested_through_associations_test.rb')
-rw-r--r-- | activerecord/test/cases/associations/nested_through_associations_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/associations/nested_through_associations_test.rb b/activerecord/test/cases/associations/nested_through_associations_test.rb index 31b68c940e..b040485d99 100644 --- a/activerecord/test/cases/associations/nested_through_associations_test.rb +++ b/activerecord/test/cases/associations/nested_through_associations_test.rb @@ -495,7 +495,7 @@ class NestedThroughAssociationsTest < ActiveRecord::TestCase groucho = members(:groucho) founding = member_types(:founding) - assert_raises(ActiveRecord::HasManyThroughNestedAssociationsAreReadonly) do + assert_raises(ActiveRecord::HasOneThroughNestedAssociationsAreReadonly) do groucho.nested_member_type = founding end end |