Add single letter alias -s for option --short

--short was being used in a test for date logic, but I added a second
test for explicitness.
This commit is contained in:
flight16 2015-04-13 09:08:43 +09:00
parent 9825f16310
commit ebee196444
2 changed files with 9 additions and 1 deletions

View file

@ -47,3 +47,11 @@ Feature: Basic reading and writing to a journal
When we run "jrnl -v"
Then we should get no error
Then the output should contain "version"
Scenario: --short and -s display the short version of entries (only the title)
Given we use the config "basic.yaml"
When we run "jrnl -on 2013-06-10 --short"
Then the output should be "2013-06-10 15:40 Life is good."
When we run "jrnl -on 2013-06-10 -s"
Then the output should be "2013-06-10 15:40 Life is good."