浏览代码

Matching path.

Very basic, just tests for expected being prefix of actual.
Herby Vojčík 7 年之前
父节点
当前提交
76eb12c028
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/Znock/ZnockClient.class.st

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

@@ -55,6 +55,7 @@ ZnockClient >> matches: aZnockExpectation [
 		[ :authority | authority = req url authority ifFalse: [ ^ false ] ].
 	exp method ifNotNil:
 		[ :method | method = req method ifFalse: [ ^ false ] ].
+	(req url path beginsWith: exp url path) ifFalse: [ ^ false ].
 
 	^ true
 ]