add object method missing as sys exit

functions get added twice and thus removed once
remove restriction for now
This commit is contained in:
Torsten Ruger
2018-04-02 16:49:30 +03:00
parent fb29fb6431
commit 87eee0b66e
5 changed files with 10 additions and 11 deletions

View File

@ -43,12 +43,6 @@ class TestMethodApi < MiniTest::Test
@try_type.remove_method(:foo)
end
end
def test_remove_method_missing
# assert @try_type.get_method( :method_missing)
assert_raises RuntimeError do
@try_type.remove_method(:method_missing)
end
end
def test_create_method
args = Parfait::Type.for_hash( @try_class , { bar: :Integer})
@try_type.create_method :bar, args , empty_frame