class RSpec::Mocks::Matchers::Receive

def setup_method_substitute(host, method, block, *args)

def setup_method_substitute(host, method, block, *args)
  args << @message.to_sym
  block = move_block_to_last_customization(block)
  expectation = host.__send__(method, *args, &(@block || block))
  @recorded_customizations.each do |customization|
    customization.playback_onto(expectation)
  end
  expectation
end