aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases
diff options
context:
space:
mode:
authorPhilip Arndt <parndt@gmail.com>2012-07-02 14:21:05 +1200
committerPhilip Arndt <parndt@gmail.com>2012-07-06 14:31:33 +1200
commita1ad02a4af213abfcd7c6602e6f2d281530c47cc (patch)
tree8c5fcaaaa9a7102b40789780a8f5e2a8f1b1eaa9 /activerecord/test/cases
parent83302a4c1384c18bec7128ec561eb6a8aa674275 (diff)
downloadrails-a1ad02a4af213abfcd7c6602e6f2d281530c47cc.tar.gz
rails-a1ad02a4af213abfcd7c6602e6f2d281530c47cc.tar.bz2
rails-a1ad02a4af213abfcd7c6602e6f2d281530c47cc.zip
Made ArgumentError messages consistent.
Diffstat (limited to 'activerecord/test/cases')
-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 3daa033ed0..3a234f0cc1 100644
--- a/activerecord/test/cases/nested_attributes_test.rb
+++ b/activerecord/test/cases/nested_attributes_test.rb
@@ -196,7 +196,7 @@ class TestNestedAttributesOnAHasOneAssociation < ActiveRecord::TestCase
end
def test_should_raise_argument_error_if_trying_to_build_polymorphic_belongs_to
- assert_raise_with_message ArgumentError, "Cannot build association looter. Are you trying to build a polymorphic one-to-one association?" do
+ assert_raise_with_message ArgumentError, "Cannot build association `looter'. Are you trying to build a polymorphic one-to-one association?" do
Treasure.new(:name => 'pearl', :looter_attributes => {:catchphrase => "Arrr"})
end
end