Exception: PactExpectations::VerifyError
- Inherits:
-
StandardError
- Object
- StandardError
- PactExpectations::VerifyError
- Defined in:
- lib/pact_expectations.rb
Instance Method Summary collapse
-
#initialize(not_call_responses = [], not_call_reificated = []) ⇒ VerifyError
constructor
A new instance of VerifyError.
- #message ⇒ Object
Constructor Details
#initialize(not_call_responses = [], not_call_reificated = []) ⇒ VerifyError
Returns a new instance of VerifyError.
57 58 59 60 |
# File 'lib/pact_expectations.rb', line 57 def initialize(not_call_responses = [], not_call_reificated = []) @not_call_responses = not_call_responses @not_call_reificated = not_call_reificated end |
Instance Method Details
#message ⇒ Object
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 |
# File 'lib/pact_expectations.rb', line 62 def = String.new("\n") unless @not_call_responses.empty? << ( "Some expectations were defined but not used to construct the Contract", @not_call_responses ) end unless @not_call_reificated.empty? << ( "Some expectations were defined but not used to stub Remote Facade", @not_call_reificated ) end end |