Browse files

add issue number to BetamaxHttpClientSpec

  • Loading branch information...
1 parent 7a39099 commit f54310ed032ef76a84b74a071583732aeb285ab0 Rob Fletcher committed Oct 23, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/test/groovy/co/freeside/betamax/httpclient/BetamaxHttpClientSpec.groovy
@@ -10,14 +10,16 @@ import org.apache.http.entity.StringEntity
import org.eclipse.jetty.server.Handler
import org.junit.Rule
import spock.lang.*
+import static co.freeside.betamax.util.FileUtils.newTempDir
import static co.freeside.betamax.util.server.HelloHandler.HELLO_WORLD
import static
import static org.apache.http.HttpHeaders.VIA
import static org.apache.http.entity.ContentType.APPLICATION_FORM_URLENCODED
class BetamaxHttpClientSpec extends Specification {
- @Shared @AutoCleanup('deleteDir') File tapeRoot = new File('', 'tapes')
+ @Shared @AutoCleanup('deleteDir') File tapeRoot = newTempDir('tapes')
@Rule Recorder recorder = new Recorder(tapeRoot: tapeRoot, proxy: Mock(HttpInterceptor))
@AutoCleanup('stop') SimpleServer endpoint = new SimpleServer()
def http = new BetamaxHttpClient(recorder)

0 comments on commit f54310e

Please sign in to comment.