aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/nested_attributes_test.rb
diff options
context:
space:
mode:
authorKir Shatrov <shatrov@me.com>2017-05-22 17:39:14 +0100
committerKir Shatrov <shatrov@me.com>2017-05-22 17:39:14 +0100
commit78ad8098ba46ec59eb0d6e9d1280339e1294e093 (patch)
tree4fe73a5a93253f36f62292eb202f67366d2ab439 /activerecord/test/cases/nested_attributes_test.rb
parent673dacc937f20227fbdece55b36c63241df5bf83 (diff)
downloadrails-78ad8098ba46ec59eb0d6e9d1280339e1294e093.tar.gz
rails-78ad8098ba46ec59eb0d6e9d1280339e1294e093.tar.bz2
rails-78ad8098ba46ec59eb0d6e9d1280339e1294e093.zip
More friendly exception in nested attributes
Diffstat (limited to 'activerecord/test/cases/nested_attributes_test.rb')
-rw-r--r--activerecord/test/cases/nested_attributes_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/nested_attributes_test.rb b/activerecord/test/cases/nested_attributes_test.rb
index b87419d203..5a62cbd3a6 100644
--- a/activerecord/test/cases/nested_attributes_test.rb
+++ b/activerecord/test/cases/nested_attributes_test.rb
@@ -752,7 +752,7 @@ module NestedAttributesOnACollectionAssociationTests
exception = assert_raise ArgumentError do
@pirate.send(association_setter, "foo")
end
- assert_equal 'Hash or Array expected, got String ("foo")', exception.message
+ assert_equal %{Hash or Array expected for attribute `#{@association_name}`, got String ("foo")}, exception.message
end
def test_should_work_with_update_as_well