Library providing tools for writing and running RSpec tests.
Matcher for testing whether an object has a specific property writer, e.g. responds to :property= and updates the state.
DEFAULT_EXPECTED_ITEMS
= Object.new
#initialize expected, allow_private: false => HaveWriterMatcher
#actual => Object (readonly)
#allow_private? => Boolean
#description => String
Generates a description of the matcher expectation.
#does_not_match? actual => Boolean
Inverse of #matches? method.
#failure_message => Object
#failure_message_when_negated => Object
#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.
Back to Documentation | Reference | RSpec | RSpec::SleepingKingStudios | RSpec::SleepingKingStudios::Matchers | RSpec::SleepingKingStudios::Matchers::Core