aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2011-10-06 00:34:39 +0200
committerJosé Valim <jose.valim@gmail.com>2011-10-06 00:37:15 +0200
commit82d41c969897cca28bb318f7caf301d520a2fbf3 (patch)
tree8a663fae4280827c8c551073bb8bd9f42a31333c /activesupport/test/core_ext
parent2e9e647fee59d975c9564d96c924d29ffe57f2a2 (diff)
downloadrails-82d41c969897cca28bb318f7caf301d520a2fbf3.tar.gz
rails-82d41c969897cca28bb318f7caf301d520a2fbf3.tar.bz2
rails-82d41c969897cca28bb318f7caf301d520a2fbf3.zip
Revert "don't raise NoMethodError the tried method doesn't exists"
This reverts commit 29a5aeaae976bf8432d57ec996c7c81932a39de6.
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 beb371d987..920be4a846 100644
--- a/activesupport/test/core_ext/object_and_class_ext_test.rb
+++ b/activesupport/test/core_ext/object_and_class_ext_test.rb
@@ -99,7 +99,7 @@ class ObjectTryTest < Test::Unit::TestCase
def test_nonexisting_method
method = :undefined_method
assert !@string.respond_to?(method)
- assert_nil @string.try(method)
+ assert_raise(NoMethodError) { @string.try(method) }
end
def test_nonexisting_method_with_arguments