RSpec

Library providing tools for writing and running RSpec tests.

Class: RSpec::SleepingKingStudios::Matchers::BuiltIn::BeAKindOfMatcher

Parent Namespace
RSpec::SleepingKingStudios::Matchers::BuiltIn
Inherited Classes
RSpec::Matchers::BuiltIn::BeAKindOf > Object
Defined In
lib/rspec/sleeping_king_studios/matchers/built_in/be_kind_of_matcher.rb

Table Of Contents

Overview

Extensions to the built-in RSpec #be_kind_of matcher.

Back To Top

Instance Methods

#description => Object

#failure_message => Object

Message for when the object does not match, but was expected to. Make sure to always call #matches? first to set up the matcher state.

#failure_message_when_negated => Object

Message for when the object matches, but was expected not to. Make sure to always call #matches? first to set up the matcher state.

#match expected, actual => Boolean

Checks if the object matches one of the specified types. Allows an expected value of nil as a shortcut for expecting an instance of NilClass.

Parameters

Returns

Back To Top


Back to Documentation | Versions | 2.8.1 | Reference | RSpec | RSpec::SleepingKingStudios | RSpec::SleepingKingStudios::Matchers | RSpec::SleepingKingStudios::Matchers::BuiltIn