Closed Zasch closed 8 years ago
I suspect it's a duplicate. What version are you using?
I'm using 1.1.2.RELEASE
testCompile('org.springframework.restdocs:spring-restdocs-restassured:1.1.2.RELEASE')
Thanks. Are you using Spring Boot? If so, its dependency management will be forcing the core module (which is where the fix is) to be 1.1.1.RELEASE. If not, please provide a complete example that reproduces the problem.
Transitive dependency was in fact spring-restdocs-core:1.1.1.RELEASE.
So this fixes it:
testCompile("org.springframework.restdocs:spring-restdocs-restassured:1.1.2.RELEASE") {
exclude group: "org.springframework.restdocs", module: "spring-restdocs-core"
}
testCompile("org.springframework.restdocs:spring-restdocs-core:1.1.2.RELEASE")
Thank you.
Great. Btw, there's no need for the exclude there. And if you're using Spring Boot you could just override spring-restdocs.version
instead.
There seems to be a problem with curl- and http-snippet generation. The request params are doubled:
$ curl 'http://loclhost/tags/list?page=0&per_page=3?page=0&per_page=3' -i -H 'Accept: application/json'
GET /tags/list?page=0&per_page=3&page=0&per_page=3 HTTP/1.1 Accept: application/json Host: localhost
I use Rest-Assured:
Maybe, this is related to #286 ?