mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Fixed test_nonexisting_method_with_arguments to revert commit 29a5aea
Signed-off-by: José Valim <jose.valim@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user