Fixed test_nonexisting_method_with_arguments to revert commit 29a5aea

Signed-off-by: José Valim <jose.valim@gmail.com>
This commit is contained in:
Yasuo Honda
2011-10-06 07:44:48 -04:00
committed by José Valim
parent 57a01f337e
commit f40bbc94e1

View File

@@ -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