module Minitest::Assertions

def assert_instance_of cls, obj, msg = nil

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