Created
March 26, 2012 14:24
-
-
Save enygma/2205447 to your computer and use it in GitHub Desktop.
RESTful testing with Behat
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
Feature: Testing the RESTfulness of the Index controller | |
Let's see how RESTish this is | |
Scenario: Creating a new User | |
Given that I want to make a new "User" | |
And that the its "name" is "Chris" | |
And I request "/user/index.json" | |
And the response is JSON | |
And the response has a "userId" property | |
And the type of the "userId" property is numeric | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment