mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-07-14 02:16:12 +02:00
fixup alichtman's implementation
This commit is contained in:
parent
972a00f478
commit
9bbc38b7ce
5 changed files with 46 additions and 26 deletions
|
@ -71,17 +71,3 @@ Feature: Basic reading and writing to a journal
|
|||
Given we use the config "basic.yaml"
|
||||
When we run "jrnl -on 2013-06-10 -s"
|
||||
Then the output should be "2013-06-10 15:40 Life is good."
|
||||
|
||||
# The input for this test is <SPACE><ENTER>y
|
||||
Scenario: --delete flag allows deletion of single entry
|
||||
Given we use the config "deletion.yaml"
|
||||
When we run "jrnl --delete"
|
||||
And we type " "
|
||||
And we type
|
||||
"""
|
||||
|
||||
y
|
||||
"""
|
||||
When we run "jrnl -on 2019-10-29 -s"
|
||||
Then the output should not contain "2019-10-29 11:11 First entry."
|
||||
|
||||
|
|
20
features/delete.feature
Normal file
20
features/delete.feature
Normal file
|
@ -0,0 +1,20 @@
|
|||
Feature: Delete entries from journal
|
||||
|
||||
Scenario: --delete flag allows deletion of single entry
|
||||
Given we use the config "deletion.yaml"
|
||||
When we run "jrnl -n 1"
|
||||
Then the output should contain
|
||||
"""
|
||||
2019-10-29 11:13 Third entry.
|
||||
"""
|
||||
When we run "jrnl --delete" and enter
|
||||
"""
|
||||
N
|
||||
N
|
||||
Y
|
||||
"""
|
||||
When we run "jrnl -n 1"
|
||||
Then the output should contain
|
||||
"""
|
||||
2019-10-29 11:11 Second entry.
|
||||
"""
|
Loading…
Add table
Add a link
Reference in a new issue