Wrap undef_method :a
with ensure
This commit is contained in:
parent
96a2e27185
commit
78be6696d8
@ -311,9 +311,9 @@ class TestDefined < Test::Unit::TestCase
|
||||
end
|
||||
|
||||
assert_nil(a)
|
||||
|
||||
ensure
|
||||
BasicObject.class_eval do
|
||||
undef_method :a
|
||||
undef_method :a if defined?(a)
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user