mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-20 04:58:32 +02:00
rewrite behavior scenario
This commit is contained in:
parent
80d2c609ba
commit
9bab1aee87
1 changed files with 4 additions and 7 deletions
|
@ -2,7 +2,7 @@ Feature: Implementing Runtime Overrides for Select Configuration Keys
|
||||||
|
|
||||||
Scenario: Override configured editor with built-in input === editor:''
|
Scenario: Override configured editor with built-in input === editor:''
|
||||||
Given we use the config "editor-args.yaml"
|
Given we use the config "editor-args.yaml"
|
||||||
When we run "jrnl --config-override '{"editor": """}'"
|
When we run "jrnl --config-override '{"editor": ""}'"
|
||||||
Then the editor "" should have been called
|
Then the editor "" should have been called
|
||||||
|
|
||||||
Scenario: Override configured editor with 'nano'
|
Scenario: Override configured editor with 'nano'
|
||||||
|
@ -31,9 +31,6 @@ Then the output should be
|
||||||
"""
|
"""
|
||||||
|
|
||||||
Scenario: Override color selections with runtime overrides
|
Scenario: Override color selections with runtime overrides
|
||||||
Given we use the config "no_colors.yaml"
|
Given we use the config "editor.yaml"
|
||||||
When we run "jrnl --config-override '{"colors.body": "blue"}'"
|
When we run "jrnl -1 --config-override '{"colors.body": "blue"}' "
|
||||||
Then the config should have "colors" set to
|
Then the runtime config should have colors.body set to blue
|
||||||
"""
|
|
||||||
'body': 'blue'
|
|
||||||
"""
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue