remove assert_instance_of and assert_kind_of which might hinder duck typing

parent cf358aea
......@@ -86,16 +86,6 @@ def assert_include(collection, obj, msg = nil)
assert_true(collection.include?(obj), msg, diff)
end
def assert_instance_of(klass, obj, msg = nil)
msg = "Expected #{obj.inspect} to be an instance of #{klass}, not #{obj.class}" unless msg
assert_true(obj.instance_of?(klass), msg)
end
def assert_kind_of(klass, obj, msg = nil)
msg = "Expected #{obj.inspect} to be an kind of #{klass}, not #{obj.class}" unless msg
assert_true(obj.kind_of?(klass), msg)
end
def assert_raises(*exp)
if $mrbtest_assert
$mrbtest_assert_idx += 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment