Method: Spec::Mocks::ErrorGenerator#raise_expectation_error
- Defined in:
- lib/spec/mocks/error_generator.rb
permalink #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}#{(*args)} #{(expected_received_count)}, but received it #{(actual_received_count)}" end |