class RSpec::Mocks::Matchers::ReceiveMessages
def setup_any_instance_expectation(subject)
def setup_any_instance_expectation(subject) warn_about_block if block_given? each_message_on(any_instance_of(subject)) do |host, message, return_value| host.should_receive(message).and_return(return_value) end end