diff options
| author | mo khan <mo.khan@gmail.com> | 2020-03-21 14:03:21 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-03-21 14:03:21 -0600 |
| commit | 9966dbf1e2a949782ec84fa8d4b545482efd8d1d (patch) | |
| tree | 16f298f82784829c15274f7cee9ea5f333635ae5 /spec/integration/cli | |
| parent | c8351159af1583536e49f743585ace63cd1e2c5d (diff) | |
Change default report format to table
Diffstat (limited to 'spec/integration/cli')
| -rw-r--r-- | spec/integration/cli/scan_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/integration/cli/scan_spec.rb b/spec/integration/cli/scan_spec.rb index b9b548e..e00971b 100644 --- a/spec/integration/cli/scan_spec.rb +++ b/spec/integration/cli/scan_spec.rb @@ -14,7 +14,7 @@ RSpec.describe '`spandx scan` command', type: :cli do -l, [--logfile=LOGFILE] # Path to a logfile # Default: /dev/null -f, [--format=FORMAT] # Format of report - # Default: json + # Default: table Scan a lockfile and list dependencies/licenses OUT @@ -24,7 +24,7 @@ RSpec.describe '`spandx scan` command', type: :cli do it 'executes `spandx scan Gemfile.lock`' do gemfile_lock = fixture_file('bundler/Gemfile.lock') - output = `spandx scan #{gemfile_lock}` + output = `spandx scan #{gemfile_lock} --format=json` expected_output = <<~OUT { "version": "1.0", @@ -44,7 +44,7 @@ RSpec.describe '`spandx scan` command', type: :cli do it 'executes `spandx scan gems.lock' do gemfile_lock = fixture_file('bundler/gems.lock') - output = `spandx scan #{gemfile_lock}` + output = `spandx scan #{gemfile_lock} --format=json` expected_output = <<~OUT { "version": "1.0", @@ -64,7 +64,7 @@ RSpec.describe '`spandx scan` command', type: :cli do it 'executes `spandx scan Pipfile.lock`' do lockfile = fixture_file('pip/Pipfile.lock') - output = `spandx scan #{lockfile}` + output = `spandx scan #{lockfile} --format=json` expected_output = <<~OUT { "version": "1.0", |
