Browse Source

Do not crash for zero expectations.

Herby Vojčík 6 years ago
parent
commit
8d52f9d7ef
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Znock/Znock.class.st

+ 1 - 1
src/Znock/Znock.class.st

@@ -28,7 +28,7 @@ Znock >> baseFor: descriptor [
 
 { #category : #operations }
 Znock >> consumeExpectationFor: aZnockClient [ 
-	^ expectations
+	^ self expectations
 		detect: [ :one | aZnockClient matches: one ]
 		ifFound: [ :one | expectations remove: one. one ]
 		ifNone: [ nil ]