Method: Spec::Mocks::ErrorGenerator#raise_expectation_error

Defined in:
lib/spec/mocks/error_generator.rb

#raise_expectation_error(sym, expected_received_count, actual_received_count, *args) ⇒ Object

[View source]

26
27
28
# File 'lib/spec/mocks/error_generator.rb', line 26

def raise_expectation_error(sym, expected_received_count, actual_received_count, *args)
  __raise "#{intro} expected :#{sym}#{arg_message(*args)} #{count_message(expected_received_count)}, but received it #{count_message(actual_received_count)}"
end