Skip to content

Commit

Permalink
Merge pull request #3236 from yahonda/fix_test_nonexisting_method_wit…
Browse files Browse the repository at this point in the history
…h_arguments

Fixed test_nonexisting_method_with_arguments to revert commit 29a5aea
  • Loading branch information
josevalim committed Oct 6, 2011
2 parents 33799c8 + 281b8ca commit 89623e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activesupport/test/core_ext/object_and_class_ext_test.rb
Expand Up @@ -105,7 +105,7 @@ def test_nonexisting_method
def test_nonexisting_method_with_arguments def test_nonexisting_method_with_arguments
method = :undefined_method method = :undefined_method
assert !@string.respond_to?(method) assert !@string.respond_to?(method)
assert_nil @string.try(method, 'llo', 'y') assert_raise(NoMethodError) { @string.try(method, 'llo', 'y') }
end end


def test_valid_method def test_valid_method
Expand Down

0 comments on commit 89623e9

Please sign in to comment.