class RSpec::Matchers::BuiltIn::YieldControl
@api private Provides the implementation for ‘yield_control`. Not intended to be instantiated directly.
Public Instance Methods
@private
# File rspec-expectations/lib/rspec/matchers/built_in/yield.rb, line 95 def does_not_match?(block) !matches?(block) end
@api private @return [String]
# File rspec-expectations/lib/rspec/matchers/built_in/yield.rb, line 101 def failure_message 'expected given block to yield control' + failure_reason end
@api private @return [String]
# File rspec-expectations/lib/rspec/matchers/built_in/yield.rb, line 107 def failure_message_when_negated 'expected given block not to yield control' + failure_reason end
@private
# File rspec-expectations/lib/rspec/matchers/built_in/yield.rb, line 89 def matches?(block) @probe = YieldProbe.probe(block) expected_count_matches?(@probe.num_yields) end
@private
# File rspec-expectations/lib/rspec/matchers/built_in/yield.rb, line 112 def supports_block_expectations? true end
@private
# File rspec-expectations/lib/rspec/matchers/built_in/yield.rb, line 117 def supports_value_expectations? false end