Exception: MockSuey::MockContract::NoMatchingMethodCalls
- Defined in:
- lib/mock_suey/mock_contract.rb
Instance Attribute Summary
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(contract, real_calls) ⇒ NoMatchingMethodCalls
constructor
A new instance of NoMatchingMethodCalls.
Constructor Details
#initialize(contract, real_calls) ⇒ NoMatchingMethodCalls
Returns a new instance of NoMatchingMethodCalls.
41 42 43 44 45 46 47 48 49 50 |
# File 'lib/mock_suey/mock_contract.rb', line 41 def initialize(contract, real_calls) @contract = contract super( contract, "Mock contract verification failed:\n" \ " No matching calls captured for #{contract.inspect}.\n" \ " Captured call patterns:\n" \ "#{(real_calls)}" ) end |