Skip to content

Commit

Permalink
using every makes sense in the test for #68
Browse files Browse the repository at this point in the history
  • Loading branch information
robfletcher committed Oct 12, 2012
1 parent 92ce137 commit 5ce88d4
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -62,8 +62,8 @@ class TargetConnectorSpec extends Specification {


then: then:
1 * httpClient.execute(_, _) >> { httpHost, outboundRequest -> 1 * httpClient.execute(_, _) >> { httpHost, outboundRequest ->
request.headers.each { name, value -> assert request.headers.every { name, value ->
assert outboundRequest.getFirstHeader(name).value == value outboundRequest.getFirstHeader(name)?.value == value
} }
okResponse okResponse
} }
Expand Down

0 comments on commit 5ce88d4

Please sign in to comment.