method
raise_unexpected_message_args_error
1.3.1 -
Show latest stable
- Class:
Spec::Mocks::ErrorGenerator
raise_unexpected_message_args_error(expectation, *args)public
No documentation available.
# File lib/spec/mocks/error_generator.rb, line 20
def raise_unexpected_message_args_error(expectation, *args)
expected_args = format_args(*expectation.expected_args)
actual_args = args.empty? ? "(no args)" : format_args(*args)
__raise "#{intro} received #{expectation.sym.inspect} with unexpected arguments\n expected: #{expected_args}\n got: #{actual_args}"
end