RSpec

Library providing tools for writing and running RSpec tests.

Class: RSpec::SleepingKingStudios::Configuration::Matchers

Parent Namespace
RSpec::SleepingKingStudios::Configuration
Defined In
lib/rspec/sleeping_king_studios/configuration.rb

Table Of Contents

Overview

Configuration options for RSpec::SleepingKingStudios::Matchers.

Back To Top

Instance Methods

#allow_empty_include_matchers => Boolean (deprecated)

Also known as: allow_empty_include_matchers?

Deprecated. [3.0] Will be removed in version 3.0.

Checks whether the #include matcher can be instantiated without an expectation object or block.

Returns

#allow_empty_include_matchers=(value) => Boolean (deprecated)

Deprecated. [3.0] Will be removed in version 3.0.

Sets whether the #include matcher can be instantiated without an expectation object or block. If this option is set to false, an ArgumentError will be raised when attempting to instantiate an IncludeMatcher without any expectations.

This prevents an insidious bug when using the do..end block syntax to create a block expectation while the matcher macro is itself an argument to another function, such as ExpectationTarget#to. This bug causes the block to be silently ignored and any enumerable object to match against the matcher, even an empty object.

Returns

#strict_predicate_matching => Boolean

Also known as: strict_predicate_matching?

Checks whether predicates are matched “strictly”, meaning that they must return either true or false.

Returns

#strict_predicate_matching=(value) => Object

Sets whether predicates are matched “strictly”, meaning that they must return either true or false.

Parameters

Back To Top


Back to Documentation | Reference | RSpec | RSpec::SleepingKingStudios | RSpec::SleepingKingStudios::Configuration