mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
mruby-object-ext/test: call #remove_const via #__send__
This commit is contained in:
@@ -35,7 +35,7 @@ assert('instance_exec on primitives with class and module definition') do
|
||||
|
||||
assert_kind_of Class, A::B
|
||||
ensure
|
||||
Object.remove_const :A
|
||||
Object.__send__(:remove_const,:A)
|
||||
end
|
||||
|
||||
begin
|
||||
@@ -48,7 +48,7 @@ assert('instance_exec on primitives with class and module definition') do
|
||||
|
||||
assert_kind_of Module, A::B
|
||||
ensure
|
||||
Object.remove_const :A
|
||||
Object.__send__(:remove_const,:A)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user