Skip to content

Instantly share code, notes, and snippets.

@plaa
Created September 24, 2012 19:25
Show Gist options
  • Save plaa/3777792 to your computer and use it in GitHub Desktop.
Save plaa/3777792 to your computer and use it in GitHub Desktop.
Feature: User API
Scenario: Index action includes full user JSON
Given the following user exists:
| id | first_name | last_name |
| 1 | Steve | Richert |
And I visit "/users/1.json"
And I keep the JSON response as "USER_1"
When I visit "/users.json"
Then the JSON response should be:
"""
[
%{USER_1}
]
"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment