complex behavior sequence for default journal override

This commit is contained in:
sriniv27 2021-02-13 21:05:30 -05:00
parent 20450a9b8a
commit 531fba3b37

View file

@ -65,28 +65,34 @@ Feature: Implementing Runtime Overrides for Select Configuration Keys
| vi -c startinsert | | vi -c startinsert |
| code -w | | code -w |
Scenario: Override configured journal Scenario: Override default journal
Given we use the config "basic_dayone.yaml" Given we use the config "basic_dayone.yaml"
And we use the password "test" if prompted And we use the password "test" if prompted
When we run "jrnl --debug -3 --config-override journals.default features/journals/simple.journal" When we run "jrnl --debug --config-override journals.default features/journals/simple.journal 20 Mar 2000: The rain in Spain comes from clouds"
Then we should get no error Then we should get no error
And the output should be And we should see the message "Entry added"
When we run "jrnl -3 --debug --config-override journals.default features/journals/simple.journal"
Then the output should be
""" """
2000-03-20 09:00 The rain in Spain comes from clouds
2013-06-09 15:39 My first entry. 2013-06-09 15:39 My first entry.
| Everything is alright | Everything is alright
2013-06-10 15:40 Life is good. 2013-06-10 15:40 Life is good.
| But I'm better. | But I'm better.
""" """
@wip @wip
Scenario: Make an entry into an overridden journal Scenario: Make an entry into an overridden journal
Given we use the config "basic_dayone.yaml" Given we use the config "basic_dayone.yaml"
And we use the password "test" if prompted And we use the password "test" if prompted
When we run "jrnl --config-override journals.temp features/journals/simple.journal temp Sep 06 1969: @say Ni" When we run "jrnl --config-override journals.temp features/journals/simple.journal temp Sep 06 1969: @say Ni"
And we run "jrnl --config-override journals.temp features/journals/simple.journal temp -3" Then we should get no error
Then we should get no error And we should see the message "Entry added"
And the output should be When we run "jrnl --config-override journals.temp features/journals/simple.journal temp -3"
Then the output should be
""" """
1969-09-06 09:00 @say Ni 1969-09-06 09:00 @say Ni
@ -95,4 +101,4 @@ Feature: Implementing Runtime Overrides for Select Configuration Keys
2013-06-10 15:40 Life is good. 2013-06-10 15:40 Life is good.
| But I'm better. | But I'm better.
""" """