summaryrefslogtreecommitdiff
path: root/spec/integration
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-04-11 19:03:07 -0600
committermo khan <mo.khan@gmail.com>2020-04-11 19:03:07 -0600
commitb1e61fc752de499106d2bef898648e8d058abc2d (patch)
tree0b3e777ac06c72280e585a4f0c653d0ff425448d /spec/integration
parent3af4debce4dbb53e35d723bfc8208aadbcd110ee (diff)
Convert json to table format for easier to read diff
Diffstat (limited to 'spec/integration')
-rw-r--r--spec/integration/cli/scan_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/integration/cli/scan_spec.rb b/spec/integration/cli/scan_spec.rb
index 79d45aa..4d82a8f 100644
--- a/spec/integration/cli/scan_spec.rb
+++ b/spec/integration/cli/scan_spec.rb
@@ -90,8 +90,8 @@ RSpec.describe '`spandx scan` command', type: :cli do
it 'executes `spandx scan composer.lock`' do
lockfile = fixture_file('composer/composer.lock')
- output = `spandx scan #{lockfile} --format=json`
+ output = `spandx scan #{lockfile}`
- expect(JSON.parse(output)).to eq(JSON.parse(fixture_file_content('composer/composer.lock.expected')))
+ expect(output).to eq(fixture_file_content('composer/composer.lock.expected'))
end
end