Class: RSpec::Matchers::BuiltIn::YieldControl Private
- Inherits:
-
BaseMatcher
- Object
- BaseMatcher
- RSpec::Matchers::BuiltIn::YieldControl
- Includes:
- CountExpectation
- Defined in:
- lib/rspec/matchers/built_in/yield.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Provides the implementation for yield_control
.
Not intended to be instantiated directly.
Constant Summary
Constants inherited from BaseMatcher
Instance Method Summary collapse
- #failure_message ⇒ String private
- #failure_message_when_negated ⇒ String private
Methods included from CountExpectation
#at_least, #at_most, #exactly, #once, #thrice, #times, #twice
Methods inherited from BaseMatcher
#description, #diffable?, #expects_call_stack_jump?, #initialize, #match_unless_raises
Methods included from Composable
#===, #and, #description_of, #or, should_enumerate?, surface_descriptions_in, unreadable_io?, #values_match?
Constructor Details
This class inherits a constructor from RSpec::Matchers::BuiltIn::BaseMatcher
Instance Method Details
#failure_message ⇒ String
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
117 118 119 |
# File 'lib/rspec/matchers/built_in/yield.rb', line 117 def 'expected given block to yield control' + failure_reason end |
#failure_message_when_negated ⇒ String
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
123 124 125 |
# File 'lib/rspec/matchers/built_in/yield.rb', line 123 def 'expected given block not to yield control' + failure_reason end |