class RSpec::Mocks::Matchers::Receive

def setup_negative_expectation(subject, &block)

def setup_negative_expectation(subject, &block)
  # ensure `never` goes first for cases like `never.and_return(5)`,
  # where `and_return` is meant to raise an error
  @recorded_customizations.unshift ExpectationCustomization.new(:never, [], nil)
  warn_if_any_instance("expect", subject)
  setup_expectation(subject, &block)
end