This repository has been archived by the owner on Mar 16, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/due' into develop
* feature/due: Brighten the headers. Introduce due-feature. introduce before_date filter introduce on_date filter on todolist Introduce due attribute on Todo Feature to show todays date in output Add feature for "due"
- Loading branch information
Showing
11 changed files
with
119 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,49 @@ | ||
Feature: Due | ||
|
||
So that I can see what needs to be done | ||
As a user | ||
I want to get a list of due items | ||
|
||
Background: | ||
Given a default config exists | ||
|
||
Scenario: Show todays date | ||
Given a todofile exists | ||
When I run `todotxt due` interactively | ||
Then it should pass with todays date | ||
|
||
Scenario: List due items | ||
Given the date is "2012-12-12" | ||
And a todofile with the following items exists: | ||
| todo | | ||
| 2012-12-17 Install todotxt @cli +todotxt | | ||
| Read documentation +todotxt | | ||
| 2012-12-12 Buy GTD book @amazon +wishlist | | ||
| 2012-12-19 Evaluate installation +todotxt | | ||
When I run `todotxt due` interactively | ||
Then it should pass with exactly: | ||
""" | ||
Due today (2012-12-12) | ||
3. 2012-12-12 Buy GTD book @amazon +wishlist | ||
Past-due items | ||
Due 7 days in advance | ||
1. 2012-12-17 Install todotxt @cli +todotxt | ||
4. 2012-12-19 Evaluate installation +todotxt | ||
""" | ||
|
||
Scenario: list overdue items | ||
Given the date is "2012-12-12" | ||
And a todofile with the following items exists: | ||
| todo | | ||
| 2012-12-17 Install todotxt @cli +todotxt | | ||
| Read documentation +todotxt | | ||
| 2012-11-11 Buy GTD book @amazon +wishlist | | ||
When I run `todotxt due` interactively | ||
Then it should pass with: | ||
""" | ||
Past-due items | ||
3. 2012-11-11 Buy GTD book @amazon +wishlist | ||
""" |
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
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
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
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
require 'chronic' | ||
require 'simplecov' | ||
SimpleCov.start |
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
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