# File lib/facon/error_generator.rb, line 17 def raise_unexpected_message_args_error(expectation, *args) message = "#{target_name} expected :#{expectation.method} with #{format_args(*expectation.argument_expectation)}, but received it with #{format_args(*args)}" raise(Facon::MockExpectationError, message) end