From 148d3fdb18f8378bf447052268635a5367de7ec0 Mon Sep 17 00:00:00 2001 From: Micah Jerome Ellison Date: Mon, 19 Apr 2021 20:16:37 -0700 Subject: [PATCH] Update test w/ new steps Co-authored-by: Jonathan Wren --- tests/features/format.feature | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/tests/features/format.feature b/tests/features/format.feature index d8454ce0..330c3a06 100644 --- a/tests/features/format.feature +++ b/tests/features/format.feature @@ -74,12 +74,14 @@ Feature: Custom formats Then the output should be valid JSON Then we should get no error And the output should be valid JSON - And "entries" in the json output should have 2 elements - And "tags" in the json output should contain "@ipsum" - And "tags" in the json output should contain "@tagone" - And "tags" in the json output should contain "@tagtwo" - And entry 1 should have an array "tags" with 3 elements - And entry 2 should have an array "tags" with 1 elements + Given we parse the output as JSON + Then "entries" in the parsed output should have 2 elements + And "tags" in the parsed output should be + @ipsum + @tagone + @tagtwo + And "entries.0.tags" in the parsed output should have 3 elements + And "entries.1.tags" in the parsed output should have 1 elements Examples: configs | config_file |