class RSpec::Mocks::Matchers::ReceiveMessages

def setup_allowance(subject)

def setup_allowance(subject)
  warn_about_block if block_given?
  each_message_on( proxy_on(subject) ) do |host, message, return_value|
    host.add_simple_stub(message, return_value)
  end
end