Last active
December 14, 2015 17:48
-
-
Save steff-mueller/5124242 to your computer and use it in GitHub Desktop.
DSL for REST service testing
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
describe 'User Administration', () -> | |
it 'Get user', req -> | |
req.get '/users' | |
.expectStatus 200 | |
.expectJSONTypes | |
id: Number, | |
username: String, | |
is_admin: Boolean | |
.expectJSON | |
id: 3, | |
username: 'johndoe', | |
is_admin: false | |
it 'Delete user should return 200', req, data -> | |
req.delete '/users' + data.id #Use JSON response from previous test | |
.expectStatus 200 |
mythz
commented
Mar 9, 2013
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment