Library providing tools for writing and running RSpec tests.
Configuration options for RSpec::SleepingKingStudios::Matchers.
#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.
#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.
#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.
#strict_predicate_matching=(value) => Object
Sets whether predicates are matched “strictly”, meaning that they must return either true or false.
Back to Documentation | Versions | 2.8 | Reference | RSpec | RSpec::SleepingKingStudios | RSpec::SleepingKingStudios::Configuration