소스 검색

Do not crash for zero expectations.

Herby Vojčík 7 년 전
부모
커밋
8d52f9d7ef
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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 ]