Method: Minitest::Assertions#refute_instance_of
- Defined in:
- lib/minitest/assertions.rb
#refute_instance_of(cls, obj, msg = nil) ⇒ Object
Fails if obj is an instance of cls.
552 553 554 555 556 557 |
# File 'lib/minitest/assertions.rb', line 552 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 |