mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-06-27 21:16:14 +02:00
Suppress "Entry added" message if using default journal (#1561)
* Suppress "Entry added to default journal" message if using default journal * Replace "Entry added" BDD test steps with "we should get no error" now that the message is suppressed * Add positive and negative tests for "Entry added" message behavior
This commit is contained in:
parent
bb6491bd06
commit
f65f07dbcb
7 changed files with 57 additions and 35 deletions
|
@ -6,7 +6,7 @@ Feature: Starring entries
|
|||
Scenario Outline: Starring an entry will mark it in the journal file
|
||||
Given we use the config "<config_file>"
|
||||
When we run "jrnl 20 july 2013 *: Best day of my life!"
|
||||
Then the output should contain "Entry added"
|
||||
Then we should get no error
|
||||
When we run "jrnl -on 2013-07-20 -starred"
|
||||
Then the output should contain "2013-07-20 09:00 Best day of my life!"
|
||||
|
||||
|
@ -34,6 +34,6 @@ Feature: Starring entries
|
|||
Given we use the config "encrypted.yaml"
|
||||
And we use the password "bad doggie no biscuit" if prompted
|
||||
When we run "jrnl 20 july 2013 *: Best day of my life!"
|
||||
Then the output should contain "Entry added"
|
||||
Then we should get no error
|
||||
When we run "jrnl -on 2013-07-20 -starred" and enter "bad doggie no biscuit"
|
||||
Then the output should contain "2013-07-20 09:00 Best day of my life!"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue