Skip to content

Instantly share code, notes, and snippets.

@enygma
Created March 26, 2012 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save enygma/2205447 to your computer and use it in GitHub Desktop.
Save enygma/2205447 to your computer and use it in GitHub Desktop.
RESTful testing with Behat
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