source: Dev/branches/rest-dojo-ui/jos-branch/server/tonic/features/resource.feature @ 312

Last change on this file since 312 was 312, checked in by jkraaijeveld, 13 years ago
File size: 710 bytes
Line 
1Feature: Resource object
2  In order to execute code
3  As a PHP developer
4  I want a PHP object that represents a HTTP resource
5 
6  Scenario: Load a non existant resource
7    Given the request URI of "/resourcetest"
8    When I create a request object
9    And I load the resource
10    And execute the request
11    Then the response code should be "404"
12    And the response body should be 'Nothing was found for the resource "/resourcetest".'
13 
14  Scenario: Load a resource that exists
15    Given the request URI of "/resourcetest/one"
16    When I create a request object
17    And I load the resource
18    And execute the request
19    Then the response code should be "200"
20    And the response body should be 'test'
21
Note: See TracBrowser for help on using the repository browser.