RSpec

Library providing tools for writing and running RSpec tests.

Class: RSpec::SleepingKingStudios::Matchers::BaseMatcher

Parent Namespace
RSpec::SleepingKingStudios::Matchers
Included Modules
RSpec::SleepingKingStudios::Matchers::Description
Defined In
lib/rspec/sleeping_king_studios/matchers/base_matcher.rb

Table Of Contents

Overview

Minimal implementation of the RSpec matcher interface.

Since

Back To Top

Direct Subclasses

RSpec::SleepingKingStudios::Matchers::ActiveModel::HaveErrorsMatcher, RSpec::SleepingKingStudios::Matchers::Core::BeAUuidMatcher, RSpec::SleepingKingStudios::Matchers::Core::BeBooleanMatcher, RSpec::SleepingKingStudios::Matchers::Core::ConstructMatcher, RSpec::SleepingKingStudios::Matchers::Core::DeepMatcher, RSpec::SleepingKingStudios::Matchers::Core::DelegateMethodMatcher, RSpec::SleepingKingStudios::Matchers::Core::HaveAliasedMethodMatcher, RSpec::SleepingKingStudios::Matchers::Core::HaveChangedMatcher, RSpec::SleepingKingStudios::Matchers::Core::HaveConstantMatcher, RSpec::SleepingKingStudios::Matchers::Core::HavePredicateMatcher, RSpec::SleepingKingStudios::Matchers::Core::HavePropertyMatcher, RSpec::SleepingKingStudios::Matchers::Core::HaveReaderMatcher, RSpec::SleepingKingStudios::Matchers::Core::HaveWriterMatcher

Back To Top

Constants

DEFAULT_EXPECTED_ITEMS

= Object.new

Inherited From
RSpec::SleepingKingStudios::Matchers::Description

Since

Back To Top

Instance Attributes

#actual => Object (readonly)

Since

Back To Top

Instance Methods

#description => String

Inherited From
RSpec::SleepingKingStudios::Matchers::Description

A short string that describes the purpose of the matcher.

Returns

Since

#does_not_match? actual => Boolean

Inverse of #matches? method.

Parameters

Returns

See Also

Since

#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.

Since

#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.

Since

#matches? actual => Boolean

Tests the actual object to see if it matches the defined condition(s). Invoked by RSpec expectations.

Parameters

Returns

Since

Back To Top


Back to Documentation | Versions | 2.8 | Reference | RSpec | RSpec::SleepingKingStudios | RSpec::SleepingKingStudios::Matchers