class RSpec::Mocks::MessageExpectation
def generate_error
def generate_error if similar_messages.empty? @error_generator.raise_expectation_error(@sym, @expected_received_count, @actual_received_count, *@args_expectation.args) else @error_generator.raise_similar_message_args_error(self, *@similar_messages) end end