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...
2 parents 33799c8 + 281b8ca commit 89623e994685159328990bbe2db788a21f72af69 @josevalim josevalim committed Oct 6, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/test/core_ext/object_and_class_ext_test.rb
View
2 activesupport/test/core_ext/object_and_class_ext_test.rb
@@ -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

0 comments on commit 89623e9

Please sign in to comment.