aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext
diff options
context:
space:
mode:
authorYasuo Honda <yasuo.honda@gmail.com>2011-10-06 07:44:48 -0400
committerYasuo Honda <yasuo.honda@gmail.com>2011-10-06 07:44:48 -0400
commit281b8caf8048c0170873b6af995ecf6aba503a61 (patch)
treec6ecc4445ea093aeb41693b5a73cf8f63712e1ce /activesupport/test/core_ext
parent33799c8fc3c7955f35e53943920e477411cce2a6 (diff)
downloadrails-281b8caf8048c0170873b6af995ecf6aba503a61.tar.gz
rails-281b8caf8048c0170873b6af995ecf6aba503a61.tar.bz2
rails-281b8caf8048c0170873b6af995ecf6aba503a61.zip
Fixed test_nonexisting_method_with_arguments to revert commit 29a5aea
Diffstat (limited to 'activesupport/test/core_ext')
-rw-r--r--activesupport/test/core_ext/object_and_class_ext_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/test/core_ext/object_and_class_ext_test.rb b/activesupport/test/core_ext/object_and_class_ext_test.rb
index 920be4a846..782a01213d 100644
--- a/activesupport/test/core_ext/object_and_class_ext_test.rb
+++ b/activesupport/test/core_ext/object_and_class_ext_test.rb
@@ -105,7 +105,7 @@ class ObjectTryTest < Test::Unit::TestCase
def test_nonexisting_method_with_arguments
method = :undefined_method
assert !@string.respond_to?(method)
- assert_nil @string.try(method, 'llo', 'y')
+ assert_raise(NoMethodError) { @string.try(method, 'llo', 'y') }
end
def test_valid_method