Method: MiniTest::Assertions#refute_kind_of
- Defined in:
- lib/minitest/unit.rb
#refute_kind_of(cls, obj, msg = nil) ⇒ Object
Fails if obj
is a kind of cls
450 451 452 453 |
# File 'lib/minitest/unit.rb', line 450 def refute_kind_of cls, obj, msg = nil # TODO: merge with instance_of msg = (msg) { "Expected #{mu_pp(obj)} to not be a kind of #{cls}" } refute obj.kind_of?(cls), msg end |