Forráskód Böngészése

Do not crash for zero expectations.

Herby Vojčík 7 éve
szülő
commit
8d52f9d7ef
1 módosított fájl, 1 hozzáadás és 1 törlés
  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 ]