diff options
author | José Valim <jose.valim@gmail.com> | 2011-10-06 04:52:25 -0700 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-10-06 04:52:25 -0700 |
commit | 89623e994685159328990bbe2db788a21f72af69 (patch) | |
tree | c6ecc4445ea093aeb41693b5a73cf8f63712e1ce | |
parent | 33799c8fc3c7955f35e53943920e477411cce2a6 (diff) | |
parent | 281b8caf8048c0170873b6af995ecf6aba503a61 (diff) | |
download | rails-89623e994685159328990bbe2db788a21f72af69.tar.gz rails-89623e994685159328990bbe2db788a21f72af69.tar.bz2 rails-89623e994685159328990bbe2db788a21f72af69.zip |
Merge pull request #3236 from yahonda/fix_test_nonexisting_method_with_arguments
Fixed test_nonexisting_method_with_arguments to revert commit 29a5aea
-rw-r--r-- | activesupport/test/core_ext/object_and_class_ext_test.rb | 2 |
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 |