Skip to content

Instantly share code, notes, and snippets.

@jbpros
Created April 19, 2012 20:56
Show Gist options
  • Select an option

  • Save jbpros/2424136 to your computer and use it in GitHub Desktop.

Select an option

Save jbpros/2424136 to your computer and use it in GitHub Desktop.
Given a user
When I GET the user as JSON
Then I receive the JSON representation of the user
Given the following user:
| attribute | value |
| login | octocat |
| id | 1 |
When I GET /user/1 as JSON
Then I receive the following "200 OK" JSON response:
"""
{
"login": "octocat",
"id": 1,
}
"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment