Created
June 2, 2014 00:50
-
-
Save alvarosanchez/db0fe3de3e4d13c3ea8f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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