class RSpec::Expectations::BlockExpectationTarget
Public Instance Methods
not_to(matcher, message=nil, &block)
click to toggle source
Calls superclass method
# File lib/rspec/is_expected_block.rb, line 23 def not_to(matcher, message=nil, &block) @target = @target.call unless supports_block_expectations?(matcher) super end
to(matcher, message=nil, &block)
click to toggle source
Calls superclass method
# File lib/rspec/is_expected_block.rb, line 18 def to(matcher, message=nil, &block) @target = @target.call unless supports_block_expectations?(matcher) super end