    # File lib/spec/mocks/message_expectation.rb, line 237
          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_unexpected_message_args_error(self, *@similar_messages.first)
            end
          end