Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #3236 from yahonda/fix_test_nonexisting_method_wit…

…h_arguments

Fixed test_nonexisting_method_with_arguments to revert commit 29a5aea
  • Loading branch information...
commit 89623e994685159328990bbe2db788a21f72af69 2 parents 33799c8 + 281b8ca
José Valim josevalim authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activesupport/test/core_ext/object_and_class_ext_test.rb
2  activesupport/test/core_ext/object_and_class_ext_test.rb
View
@@ -105,7 +105,7 @@ def test_nonexisting_method
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
Please sign in to comment.
Something went wrong with that request. Please try again.