Method: RSpec::Matchers#be_a_kind_of

Defined in:
lib/rspec/matchers.rb

#be_a_kind_of(expected) ⇒ Object Also known as: be_kind_of, a_kind_of

Passes if actual.kind_of?(expected)

Examples:

expect(5).to     be_a_kind_of(Integer)
expect(5).to     be_a_kind_of(Numeric)
expect(5).not_to be_a_kind_of(Float)


378
379
380
# File 'lib/rspec/matchers.rb', line 378

def be_a_kind_of(expected)
  BuiltIn::BeAKindOf.new(expected)
end