more class tests
This commit is contained in:
parent
36dfc1b1d3
commit
193278c8c2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user