method

be_a

rspec latest stable - Class: Spec::Matchers
be_a(klass)
public

passes if target.kind_of?(klass)