begin TDD of dot notated overrides

This commit is contained in:
Suhas 2021-01-24 07:18:48 -05:00
parent 9676290c27
commit 80d2c609ba
4 changed files with 41 additions and 9 deletions

View file

@ -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'
"""