class RSpec::Expectations::ValueExpectationTarget
@private Validates the provided matcher to ensure it supports block expectations, in order to avoid user confusion when they use a block thinking the expectation will be on the return value of the block rather than the block itself.
Public Instance Methods
Calls superclass method
RSpec::Expectations::ExpectationTarget::InstanceMethods#not_to
# File rspec-expectations/lib/rspec/expectations/expectation_target.rb, line 104 def not_to(matcher=nil, message=nil, &block) enforce_value_expectation(matcher) super end
Calls superclass method
RSpec::Expectations::ExpectationTarget::InstanceMethods#to
# File rspec-expectations/lib/rspec/expectations/expectation_target.rb, line 99 def to(matcher=nil, message=nil, &block) enforce_value_expectation(matcher) super end