Skip to content

Commit 281b8ca

Browse files
committed
Fixed test_nonexisting_method_with_arguments to revert commit 29a5aea
1 parent 33799c8 commit 281b8ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activesupport/test/core_ext/object_and_class_ext_test.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def test_nonexisting_method
105105
def test_nonexisting_method_with_arguments
106106
method = :undefined_method
107107
assert !@string.respond_to?(method)
108-
assert_nil @string.try(method, 'llo', 'y')
108+
assert_raise(NoMethodError) { @string.try(method, 'llo', 'y') }
109109
end
110110

111111
def test_valid_method

0 commit comments

Comments
 (0)