From 193278c8c241cc77b21c75eb2c868f76b62a6a59 Mon Sep 17 00:00:00 2001 From: Torsten Ruger Date: Thu, 15 Dec 2016 22:15:40 +0200 Subject: [PATCH] more class tests --- test/typed/parfait/test_class.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/typed/parfait/test_class.rb b/test/typed/parfait/test_class.rb index 55722e6e..ed6e8018 100644 --- a/test/typed/parfait/test_class.rb +++ b/test/typed/parfait/test_class.rb @@ -24,4 +24,13 @@ class TestClass < MiniTest::Test def test_remove_nothere assert !@try.remove_instance_method(:foo) end + def test_resolve + assert_nil @try.resolve_method :foo + end + def test_remove_method + assert_equal false , @try.remove_instance_method( :foo) + end + def test_add_method + assert_raises{ @try.add_instance_method(nil)} + end end