Exception: MockSuey::MockContract::NoMethodCalls

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) ⇒ NoMethodCalls

Returns a new instance of NoMethodCalls.



31
32
33
34
35
36
37
# File 'lib/mock_suey/mock_contract.rb', line 31

def initialize(contract)
  super(
    contract,
    "Mock contract verification failed:\n" \
    "  No method calls captured for #{contract.method_desc}"
  )
end