RSpec

Library providing tools for writing and running RSpec tests.

Class: RSpec::SleepingKingStudios::Matchers::Core::HaveWriterMatcher

Parent Namespace
RSpec::SleepingKingStudios::Matchers::Core
Inherited Classes
RSpec::SleepingKingStudios::Matchers::BaseMatcher > Object
Included Modules
RSpec::Matchers::Composable, RSpec::SleepingKingStudios::Matchers::Shared::MatchProperty
Defined In
lib/rspec/sleeping_king_studios/matchers/core/have_writer_matcher.rb

Table Of Contents

Overview

Matcher for testing whether an object has a specific property writer, e.g. responds to :property= and updates the state.

Since

Back To Top

Constants

DEFAULT_EXPECTED_ITEMS

= Object.new

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

Since

Back To Top

Constructor

#initialize expected, allow_private: false => HaveWriterMatcher

Parameters

Returns

Since

Back To Top

Instance Attributes

#actual => Object (readonly)

Inherited From
RSpec::SleepingKingStudios::Matchers::BaseMatcher

Since

Back To Top

Instance Methods

#allow_private? => Boolean

Returns

Since

#description => String

Generates a description of the matcher expectation.

Returns

Since

#does_not_match? actual => Boolean

Inherited From
RSpec::SleepingKingStudios::Matchers::BaseMatcher

Inverse of #matches? method.

Parameters

Returns

See Also

Since

#failure_message => Object

See Also

Since

#failure_message_when_negated => Object

See Also

Since

#matches? actual => Boolean

Checks if the object responds to :expected=. Additionally, if a value expectation is set, assigns the value via :expected= and compares the subsequent value to the specified value using :expected or the block provided to #with.

Parameters

Returns

Since

Back To Top


Back to Documentation | Reference | RSpec | RSpec::SleepingKingStudios | RSpec::SleepingKingStudios::Matchers | RSpec::SleepingKingStudios::Matchers::Core