features/TimeLogger.feature in TimeLogger-0.0.1 vs features/TimeLogger.feature in TimeLogger-0.0.2
- old
+ new
@@ -1,9 +1,35 @@
-Feature: something something
- In order to something something
- A user something something
- something something something
+Feature: time logger
- Scenario: something something
- Given inspiration
- When I create a sweet new gem
- Then everyone should see how awesome I am
+ Scenario: start task
+ Given no task is active
+ When I start task "Foo"
+ Then I should see "Started task: Foo"
+
+ Scenario: stop task
+ Given an active task "Foo"
+ When I do some work for 3 minutes
+ And I stop task "Foo"
+ Then I should see "Stopped task: Foo (3 minutes)"
+
+ Scenario: start task which you already worked on
+ Given an inactive task "Foo" I worked on for 5 minutes
+ When I start task "Foo"
+ And I do some work for 4 minutes
+ And I stop task "Foo"
+ Then I should see "Started task: Foo"
+ And I should see "Stopped task: Foo (9 minutes)"
+
+ Scenario: start new task when there is an active one
+ Given an active task "Foo" I worked on for 2 minutes
+ When I start task "Bar"
+ Then I should see "Stopped task: Foo (2 minutes)"
+ And I should see "Started task: Bar"
+
+ Scenario: list
+ Given I worked on the following tasks:
+ | name | minutes |
+ | Foo | 4 |
+ | Bar | 7 |
+ When I list tasks
+ Then I should see "Foo (4 minutes)"
+ And I should see "Bar (7 minutes)"