Explorar o código

Do not crash for zero expectations.

Herby Vojčík %!s(int64=7) %!d(string=hai) anos
pai
achega
8d52f9d7ef
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 ]