# File test/unit/assertions.rb, line 90 def assert_instance_of(klass, object, message="") _wrap_assertion { assert_equal(Class, klass.type, "assert_instance_of takes a Class as its first argument") full_message = build_message(message, object, klass, object.type) { | arg1, arg2, arg3 | "<#{arg1}> should have been an instance of <#{arg2}> but was <#{arg3}>" } assert_block(full_message) { klass == object.type } } end