Exception: MockSuey::MockContract::NoMatchingMethodCalls

Inherits:
Error
  • Object
show all
Defined in:
lib/mock_suey/mock_contract.rb

Instance Attribute Summary

Attributes inherited from Error

#contract

Instance Method Summary collapse

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" \
    "#{captured_calls_message(real_calls)}"
  )
end