features/json_processing.feature in jr-cli-0.5.0 vs features/json_processing.feature in jr-cli-0.5.1
- old
+ new
@@ -266,9 +266,28 @@
bar
baz
"""
+ Scenario: Output symbols as raw output using --raw-output option
+ Given a file named "input.json" with:
+ """
+ {
+ "foo": true,
+ "bar": true,
+ "baz": true
+ }
+
+ """
+ When I run `jr --raw-output 'map(&:keys).unwrap' input.json`
+ Then the output should contain exactly:
+ """
+ foo
+ bar
+ baz
+
+ """
+
Scenario: Read each line as string using --raw-input option
Given a file named "input.json" with:
"""
foo
bar