File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change 1+ Feature : entries
2+ In order to use mite in a sane manner
3+ As a mite user
4+ I need to be able to add, remove, edit and list time entries
5+
6+ Scenario : list entries
7+ Given A local mock server is setup for the http method "GET" and path "/time_entries.json" which returns:
8+ """
9+ [
10+ {
11+ "time_entry": {
12+ "id": 36159117,
13+ "minutes": 15,
14+ "date_at": "2015-10-16",
15+ "note": "Feedback einarbeiten",
16+ "billable": true,
17+ "locked": false,
18+ "revenue": null,
19+ "hourly_rate": 0,
20+ "user_id": 211,
21+ "user_name": "Fridolin Frei",
22+ "project_id": 88309,
23+ "project_name": "API v2",
24+ "customer_id": 3213,
25+ "customer_name": "König",
26+ "service_id": 12984,
27+ "service_name": "Entwurf",
28+ "created_at": "2015-10-16T12:39:00+02:00",
29+ "updated_at": "2015-10-16T12:39:00+02:00"
30+ }
31+ }
32+ ]
33+ """
34+ And Mite is setup to connect to this mock server
35+ Then "-c .mite.toml entries" should return the following:
36+ """
37+ id notes date time project service
38+ -- ----- ---- ---- ------- -------
39+ 36159117 Feedback einarbeiten 2015-10-16 15m API v2 Entwurf
40+
41+ """
You can’t perform that action at this time.
0 commit comments