Skip to content

Instantly share code, notes, and snippets.

@aeden
Created November 2, 2010 21:35
Show Gist options
  • Save aeden/660337 to your computer and use it in GitHub Desktop.
Save aeden/660337 to your computer and use it in GitHub Desktop.
@api
Feature: List domains
As an API client
In order to do things with domains
I want to retrieve a list of domains
Scenario: retreive all domains as XML
Given I am a valid API user
And I send and accept XML
And I have 1 domain with 5 "A" records
When I send a GET request for "/domains"
Then the response should be "200"
And the XML response should be a "domains" array with 1 "domain" elements
Scenario: retreive all domains as JSON
Given I am a valid API user
And I send and accept JSON
And I have 1 domain with 5 "A" records
When I send a GET request for "/domains"
Then the response should be "200"
And the JSON response should be an array with 1 "domain" elements
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment