From 281b8caf8048c0170873b6af995ecf6aba503a61 Mon Sep 17 00:00:00 2001 From: Yasuo Honda Date: Thu, 6 Oct 2011 07:44:48 -0400 Subject: Fixed test_nonexisting_method_with_arguments to revert commit 29a5aea --- activesupport/test/core_ext/object_and_class_ext_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3