method

assert_instance_of

v1_8_7_330 - Show latest stable - Class: Test::Unit::Assertions
assert_instance_of(klass, object, message="")
public

Passes if object .instance_of? klass

Example:

assert_instance_of String, 'foo'