Passes if actual.kind_of?(expected)
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