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
25 26 27 |
# File 'lib/spec/mocks/error_generator.rb', line 25 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 |