Method: MiniTest::Assertions#refute_instance_of

Defined in:
lib/minitest/unit.rb

#refute_instance_of(cls, obj, msg = nil) ⇒ Object

Fails if obj is an instance of cls

[View source]

440
441
442
443
444
445
# File 'lib/minitest/unit.rb', line 440

def refute_instance_of cls, obj, msg = nil
  msg = message(msg) {
    "Expected #{mu_pp(obj)} to not be an instance of #{cls}"
  }
  refute obj.instance_of?(cls), msg
end