Permalink
Browse files

using `every` makes sense in the test for #68

  • Loading branch information...
1 parent 92ce137 commit 5ce88d4f341ba1d79e2c7d3726990085d32f2872 Rob Fletcher committed Oct 12, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/test/groovy/co/freeside/betamax/proxy/handler/TargetConnectorSpec.groovy
@@ -62,8 +62,8 @@ class TargetConnectorSpec extends Specification {
then:
1 * httpClient.execute(_, _) >> { httpHost, outboundRequest ->
- request.headers.each { name, value ->
- assert outboundRequest.getFirstHeader(name).value == value
+ assert request.headers.every { name, value ->
+ outboundRequest.getFirstHeader(name)?.value == value
}
okResponse
}

0 comments on commit 5ce88d4

Please sign in to comment.