mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-07-04 15:36:14 +02:00
begin TDD of dot notated overrides
This commit is contained in:
parent
9676290c27
commit
80d2c609ba
4 changed files with 41 additions and 9 deletions
|
@ -2,12 +2,12 @@ Feature: Implementing Runtime Overrides for Select Configuration Keys
|
|||
|
||||
Scenario: Override configured editor with built-in input === editor:''
|
||||
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
|
||||
|
||||
Scenario: Override configured editor with 'nano'
|
||||
Given we use the config "editor.yaml"
|
||||
When we run "jrnl --config-override '{\"editor\": \"nano\"}'"
|
||||
When we run "jrnl --config-override '{"editor": "nano"}'"
|
||||
Then the editor "nano" should have been called
|
||||
|
||||
Scenario: Override configured linewrap with a value of 23
|
||||
|
@ -28,4 +28,12 @@ Then the output should be
|
|||
┠╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┤
|
||||
┃ But I'm better. │
|
||||
┖─────────────────────┘
|
||||
"""
|
||||
|
||||
Scenario: Override color selections with runtime overrides
|
||||
Given we use the config "no_colors.yaml"
|
||||
When we run "jrnl --config-override '{"colors.body": "blue"}'"
|
||||
Then the config should have "colors" set to
|
||||
"""
|
||||
'body': 'blue'
|
||||
"""
|
Loading…
Add table
Add a link
Reference in a new issue