Method: MiniTest::Assertions#refute_instance_of
- Defined in:
- lib/minitest/unit.rb
permalink #refute_instance_of(cls, obj, msg = nil) ⇒ Object
Fails if obj
is an instance of cls
440 441 442 443 444 445 |
# File 'lib/minitest/unit.rb', line 440 def refute_instance_of cls, obj, msg = nil msg = (msg) { "Expected #{mu_pp(obj)} to not be an instance of #{cls}" } refute obj.instance_of?(cls), msg end |