diff options
| author | mo khan <mo.khan@gmail.com> | 2020-06-12 15:44:13 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-06-12 15:44:13 -0600 |
| commit | e4b947d00f26e9aeb975b4e1933376f8cb1c6051 (patch) | |
| tree | 9314281c92dcad84b1a1732979eac4449868fc2b /spec | |
| parent | 077998970180a9f21d287d2716ef9d2eaceb4cfa (diff) | |
Remove --show-progress option
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/fixtures/help-scan.expected | 20 | ||||
| -rw-r--r-- | spec/integration/cli/scan_spec.rb | 10 | ||||
| -rw-r--r-- | spec/unit/cli/scan_spec.rb | 2 |
3 files changed, 15 insertions, 17 deletions
diff --git a/spec/fixtures/help-scan.expected b/spec/fixtures/help-scan.expected index 6cb3b35..d1c7f56 100644 --- a/spec/fixtures/help-scan.expected +++ b/spec/fixtures/help-scan.expected @@ -2,16 +2,14 @@ Usage: spandx scan LOCKFILE Options: - -h, [--help], [--no-help] # Display usage information - -R, [--recursive], [--no-recursive] # Perform recursive scan - -a, [--airgap], [--no-airgap] # Disable network connections - -l, [--logfile=LOGFILE] # Path to a logfile - # Default: /dev/null - -f, [--format=FORMAT] # Format of report. (table, csv, json) - # Default: table - -p, [--pull], [--no-pull] # Pull the latest cache before the scan - -r, [--require=REQUIRE] # Causes spandx to load the library using require. - -sp, [--show-progress], [--no-show-progress] # Shows a progress bar - # Default: true + -h, [--help], [--no-help] # Display usage information + -R, [--recursive], [--no-recursive] # Perform recursive scan + -a, [--airgap], [--no-airgap] # Disable network connections + -l, [--logfile=LOGFILE] # Path to a logfile + # Default: /dev/null + -f, [--format=FORMAT] # Format of report. (table, csv, json) + # Default: table + -p, [--pull], [--no-pull] # Pull the latest cache before the scan + -r, [--require=REQUIRE] # Causes spandx to load the library using require. Scan a lockfile and list dependencies/licenses diff --git a/spec/integration/cli/scan_spec.rb b/spec/integration/cli/scan_spec.rb index c92ea29..1a6b3f2 100644 --- a/spec/integration/cli/scan_spec.rb +++ b/spec/integration/cli/scan_spec.rb @@ -7,27 +7,27 @@ RSpec.describe '`spandx scan` command', type: :cli do end it 'executes `spandx scan Gemfile.lock`' do - output = `spandx scan #{fixture_file('bundler/Gemfile.lock')} --no-show-progress` + output = `spandx scan #{fixture_file('bundler/Gemfile.lock')} 2> /dev/null` expect(output).to eq(fixture_file_content('bundler/Gemfile.lock.expected')) end it 'executes `spandx scan gems.lock' do - output = `spandx scan #{fixture_file('bundler/gems.lock')} --no-show-progress` + output = `spandx scan #{fixture_file('bundler/gems.lock')} 2> /dev/null` expect(output).to eq(fixture_file_content('bundler/gems.lock.expected')) end it 'executes `spandx scan Pipfile.lock`' do - output = `spandx scan #{fixture_file('pip/Pipfile.lock')} --no-show-progress` + output = `spandx scan #{fixture_file('pip/Pipfile.lock')} 2> /dev/null` expect(output).to eq(fixture_file_content('pip/Pipfile.lock.expected')) end it 'executes `spandx scan yarnfile.lock`' do - output = `spandx scan #{fixture_file('js/yarn.lock')} --no-show-progress` + output = `spandx scan #{fixture_file('js/yarn.lock')} 2> /dev/null` expect(output).to eq(fixture_file_content('js/yarn.lock.expected')) end it 'executes `spandx scan composer.lock`' do - output = `spandx scan #{fixture_file('composer/composer.lock')} --no-show-progress` + output = `spandx scan #{fixture_file('composer/composer.lock')} 2> /dev/null` expect(output).to eq(fixture_file_content('composer/composer.lock.expected')) end end diff --git a/spec/unit/cli/scan_spec.rb b/spec/unit/cli/scan_spec.rb index 7e33e7f..a11842d 100644 --- a/spec/unit/cli/scan_spec.rb +++ b/spec/unit/cli/scan_spec.rb @@ -7,7 +7,7 @@ RSpec.describe Spandx::Cli::Commands::Scan do let(:lockfile) { fixture_file(path) } let(:output) { StringIO.new } - let(:options) { { format: 'table', show_progress: false, recursive: true } } + let(:options) { { format: 'table', recursive: true } } before do stub_request(:get, Spandx::Spdx::Gateway::URL) |
