mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Fix 36fc1f14 not checking in the right location
This commit is contained in:
committed by
Clayton Smith
parent
db1bd078be
commit
6be5160eb6
@@ -51,3 +51,21 @@ assert('Can still call super when BasicObject#method_missing is removed') do
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
assert("NoMethodError#new does not return an exception") do
|
||||
begin
|
||||
class << NoMethodError
|
||||
def new(*)
|
||||
nil
|
||||
end
|
||||
end
|
||||
|
||||
assert_raise(TypeError) do
|
||||
Object.q
|
||||
end
|
||||
ensure
|
||||
class << NoMethodError
|
||||
remove_method :new
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user