Permalink
Browse files

update NoMethodError tests; ref #3291

  • Loading branch information...
matz committed Dec 3, 2016
1 parent 8f510be commit 144006a20e7d97733d682ff1502f24b032b3db59
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/t/nomethoderror.rb
View
@@ -22,7 +22,7 @@
end
assert('Can still raise when BasicObject#method_missing is removed') do
assert_raise(TypeError) do
assert_raise(NoMethodError) do
begin
BasicObject.alias_method(:old_method_missing, :method_missing)
BasicObject.remove_method(:method_missing)
@@ -35,7 +35,7 @@
end
assert('Can still call super when BasicObject#method_missing is removed') do
assert_raise(TypeError) do
assert_raise(NoMethodError) do
class A
def foo
super

0 comments on commit 144006a

Please sign in to comment.