-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
services: added services feature description & test implementation
- Loading branch information
Showing
2 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
Feature: projects | ||
In order to use mite in a sane manner | ||
As a mite user | ||
I need to be able to list projects | ||
|
||
Scenario: list services | ||
Given A local mock server is setup for the http method "GET" and path "/services.json" which returns: | ||
""" | ||
[ | ||
{ | ||
"service": { | ||
"id": 38672, | ||
"name": "Website Konzeption", | ||
"note": "", | ||
"hourly_rate": 3300, | ||
"archived": false, | ||
"billable": true, | ||
"created_at": "2009-12-13T12:12:00+01:00", | ||
"updated_at": "2015-12-13T07:20:04+01:00" | ||
} | ||
} | ||
] | ||
""" | ||
And Mite is setup to connect to this mock server | ||
Then "-c .mite.toml services" should return the following: | ||
""" | ||
id name notes | ||
-- ---- ----- | ||
38672 Website Konzeption | ||
""" |