|
@@ -17,7 +17,10 @@ ZnockClient class >> newWithInterceptor: aZnock [
|
|
|
{ #category : #'private protocol' }
|
|
|
ZnockClient >> executeRequestResponse [
|
|
|
^ (interceptor consumeExpectationFor: self)
|
|
|
- ifNotNil: [ :expectation | response := expectation response. response contents ]
|
|
|
+ ifNotNil: [ :expectation |
|
|
|
+ response := expectation response.
|
|
|
+ (response respondsTo: #signal) ifTrue: [ response signal ].
|
|
|
+ response contents ]
|
|
|
ifNil: [ super executeRequestResponse ]
|
|
|
]
|
|
|
|