To add a collaborator to this project you will need to use the Relish gem to add the collaborator via a terminal command. Soon you'll be able to also add collaborators here!
More about adding a collaboratorTime Zones
TODO: Document Purpose and Usage
- Scenarios
-
- Fetching the root Time Zone collection.
- Fetching a Time Zone.
- Fetching multiple Time Zones.
- Fetching an invalid Time Zone.
- Searching for a Time Zone.
- Searching for multiple Time Zones.
- Searching for an invalid Time Zone.
- Fetching the root Time Zone collection.
-
- When
- I GET to /time_zones
- Then
- I should get a 200 OK status code
- And
- the response is the Time Zone collection
- And
- the response contains all Time Zones
- Fetching a Time Zone.
-
- Given
- I have 1 Time Zone
- When
- I GET to /time_zones/:time_zone_id giving the time_zone_id
- Then
- I should get a 200 OK status code
- And
- the response is the Time Zone collection
- And
- the response contains 1 Time Zone
- Fetching multiple Time Zones.
-
- Given
- I have 2 Time Zones
- When
- I GET to /time_zones/:time_zone_id giving the time_zone_id
- Then
- I should get a 200 OK status code
- And
- the response is the Time Zone collection
- And
- the response contains 2 Time Zones
- Fetching an invalid Time Zone.
-
- Given
- I have an invalid Time Zone
- When
- I GET to /time_zones/:time_zone_id giving the time_zone_id
- Then
- I should get a 404 NOT FOUND status code
- Searching for a Time Zone.
-
- Given
- I have 1 Time Zone
- When
- I GET to /time_zones/search?id=:time_zone_id giving the time_zone_id
- Then
- I should get a 200 OK status code
- And
- the response is the Time Zone collection
- And
- the response contains 1 Time Zone
- Searching for multiple Time Zones.
-
- Given
- I have 2 Time Zones
- When
- I GET to /time_zones/search?id=:time_zone_id giving the time_zone_id
- Then
- I should get a 200 OK status code
- And
- the response is the Time Zone collection
- And
- the response contains 2 Time Zones
- Searching for an invalid Time Zone.
-
- Given
- I have an invalid Time Zone
- When
- I GET to /time_zones/search?id=:time_zone_id giving the time_zone_id
- Then
- I should get a 200 OK status code
- And
- the response is the Time Zone collection
- And
- the response contains 0 Time Zones
Last published almost 7 years ago by semmons99.