Created
November 2, 2010 21:35
-
-
Save aeden/660337 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
@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