Parent

Class/Module Index [+]

Quicksearch

RSpec::Matchers::BuiltIn::YieldControl

Public Instance Methods

failure_message_for_should() click to toggle source
# File lib/rspec/matchers/built_in/yield.rb, line 73
def failure_message_for_should
  "expected given block to yield control"
end
failure_message_for_should_not() click to toggle source
# File lib/rspec/matchers/built_in/yield.rb, line 77
def failure_message_for_should_not
  "expected given block not to yield control"
end
matches?(block) click to toggle source
# File lib/rspec/matchers/built_in/yield.rb, line 68
def matches?(block)
  probe = YieldProbe.probe(block)
  probe.yielded_once?(:yield_control)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.