more class tests
This commit is contained in:
@@ -24,4 +24,13 @@ class TestClass < MiniTest::Test
|
|||||||
def test_remove_nothere
|
def test_remove_nothere
|
||||||
assert !@try.remove_instance_method(:foo)
|
assert !@try.remove_instance_method(:foo)
|
||||||
end
|
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
|
end
|
||||||
|
Reference in New Issue
Block a user