class RSpec::Mocks::NegativeMessageExpectation
@private
def and_return(*)
def and_return(*) # no-op # @deprecated and_return is not supported with negative message expectations. RSpec::Mocks.warn_deprecation <<-MSG ATION: `and_return` with `should_not_receive` is deprecated. Called from #{caller(0)[1]} end
def initialize(error_generator, expectation_ordering, expected_from, method_double, &implementation)
- Private: -
def initialize(error_generator, expectation_ordering, expected_from, method_double, &implementation) super(error_generator, expectation_ordering, expected_from, method_double, 0, {}, &implementation) end
def negative_expectation_for?(message)
- Private: -
def negative_expectation_for?(message) return @message == message end