|
@@ -41,13 +41,6 @@ ZnockBase >> doesNotUnderstand: aMessage [
|
|
|
^ super doesNotUnderstand: aMessage
|
|
|
]
|
|
|
|
|
|
-{ #category : #public }
|
|
|
-ZnockBase >> error: aString [
|
|
|
- self response: self newCleanResponse.
|
|
|
- builtClient customizeResponseBlock: [ :req :res | self error: aString ]
|
|
|
-
|
|
|
-]
|
|
|
-
|
|
|
{ #category : #building }
|
|
|
ZnockBase >> forwardedSelectors [
|
|
|
^ {
|
|
@@ -148,7 +141,7 @@ ZnockBase >> response [
|
|
|
|
|
|
{ #category : #building }
|
|
|
ZnockBase >> response: response [
|
|
|
- self response ifNotNil: [ super error: 'Response already created' ].
|
|
|
+ self response ifNotNil: [ self error: 'Response already created' ].
|
|
|
builtClient response: response
|
|
|
]
|
|
|
|
|
@@ -174,3 +167,10 @@ ZnockBase >> waitFor: aDuration [
|
|
|
self response.
|
|
|
builtClient delay: aDuration
|
|
|
]
|
|
|
+
|
|
|
+{ #category : #public }
|
|
|
+ZnockBase >> willError: aString [
|
|
|
+ self response: self newCleanResponse.
|
|
|
+ builtClient customizeResponseBlock: [ :req :res | self error: aString ]
|
|
|
+
|
|
|
+]
|