From 9bab1aee87a5cbbbb93966394c38271bd7f53abf Mon Sep 17 00:00:00 2001 From: Suhas Date: Sun, 24 Jan 2021 11:08:11 -0500 Subject: [PATCH] rewrite behavior scenario --- features/overrides.feature | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/features/overrides.feature b/features/overrides.feature index 3108b407..04281a1c 100644 --- a/features/overrides.feature +++ b/features/overrides.feature @@ -2,7 +2,7 @@ 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' @@ -31,9 +31,6 @@ Then the output should be """ 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' -""" \ No newline at end of file +Given we use the config "editor.yaml" +When we run "jrnl -1 --config-override '{"colors.body": "blue"}' " +Then the runtime config should have colors.body set to blue