Exception: PactExpectations::ExpectationNotCalled
- Defined in:
- lib/pact_expectations.rb
Instance Method Summary collapse
-
#initialize(not_call_responses = [], not_call_reificated = []) ⇒ ExpectationNotCalled
constructor
A new instance of ExpectationNotCalled.
- #message ⇒ Object
Constructor Details
#initialize(not_call_responses = [], not_call_reificated = []) ⇒ ExpectationNotCalled
Returns a new instance of ExpectationNotCalled.
16 17 18 19 |
# File 'lib/pact_expectations.rb', line 16 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
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/pact_expectations.rb', line 21 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 |