-
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.
tracker: added tracker feature description for status & test implemen…
…tation
- Loading branch information
Showing
1 changed file
with
26 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
Feature: tracker | ||
In order to use mite in a sane manner | ||
As a mite user | ||
I need to be able to start, stop and show the status of my time tracker | ||
|
||
Scenario: time tracker status | ||
Given A local mock server is setup for the http method "GET" and path "/tracker.json" which returns: | ||
""" | ||
{ | ||
"tracker": { | ||
"tracking_time_entry": { | ||
"id": 36135321, | ||
"minutes": 247, | ||
"since": "2015-10-15T17:05:04+02:00" | ||
} | ||
} | ||
} | ||
""" | ||
And Mite is setup to connect to this mock server | ||
Then "-c .mite.toml tracker status" should return the following: | ||
""" | ||
id time state since | ||
-- ---- ----- ----- | ||
36135321 4h7m tracking 2015-10-15 15:05:04 +0000 UTC | ||
""" |