aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-09-24 14:48:25 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-09-24 14:48:57 -0700
commita0db7be4aff6fc6ebf67bbbd441c47d678bd5195 (patch)
tree3169442c70ad9df7db96cd120057e3c51659f38d /activesupport/test
parenta348ffcb2dd3819c76756d0ce0e88bc858e89ca5 (diff)
downloadrails-a0db7be4aff6fc6ebf67bbbd441c47d678bd5195.tar.gz
rails-a0db7be4aff6fc6ebf67bbbd441c47d678bd5195.tar.bz2
rails-a0db7be4aff6fc6ebf67bbbd441c47d678bd5195.zip
attr_accessor_with_default should raise an ArgumentError not a RuntimeError
Diffstat (limited to 'activesupport/test')
-rw-r--r--activesupport/test/core_ext/module/attr_accessor_with_default_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/test/core_ext/module/attr_accessor_with_default_test.rb b/activesupport/test/core_ext/module/attr_accessor_with_default_test.rb
index 9494ca9ef6..b9b60c4d6d 100644
--- a/activesupport/test/core_ext/module/attr_accessor_with_default_test.rb
+++ b/activesupport/test/core_ext/module/attr_accessor_with_default_test.rb
@@ -26,6 +26,6 @@ class AttrAccessorWithDefaultTest < Test::Unit::TestCase
end
def test_invalid_args
- assert_raise(RuntimeError) {@target.attr_accessor_with_default :foo}
+ assert_raise(ArgumentError) {@target.attr_accessor_with_default :foo}
end
end