Skip to content

Instantly share code, notes, and snippets.

@alvarosanchez
Created June 2, 2014 00:50
Show Gist options
  • Save alvarosanchez/db0fe3de3e4d13c3ea8f to your computer and use it in GitHub Desktop.
Save alvarosanchez/db0fe3de3e4d13c3ea8f to your computer and use it in GitHub Desktop.
def "it returns just the categories of a game when is a nested resource"() {
when:
Response response = restClient.get(path: "/games/5/categories", accept: ContentType.JSON)
println response.json
then:
response.json.size() == 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment