summaryrefslogtreecommitdiff
path: root/spec/integration/cli
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-04-10 18:12:42 -0600
committermo khan <mo.khan@gmail.com>2020-04-10 18:12:42 -0600
commit93371aa8e4393a420f753f1311f91982ee896eed (patch)
tree6ada7225d87b4eaf06d745b9fa94dfe251ee3b5b /spec/integration/cli
parent20763e885ac0d3bff04ede3daa29e3366930a988 (diff)
Convert pending to it and add new option to expected help output
Diffstat (limited to 'spec/integration/cli')
-rw-r--r--spec/integration/cli/scan_spec.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/integration/cli/scan_spec.rb b/spec/integration/cli/scan_spec.rb
index 24c9a2d..2ae2f26 100644
--- a/spec/integration/cli/scan_spec.rb
+++ b/spec/integration/cli/scan_spec.rb
@@ -15,6 +15,7 @@ RSpec.describe '`spandx scan` command', type: :cli do
# Default: /dev/null
-f, [--format=FORMAT] # Format of report
# Default: table
+ -p, [--pull], [--no-pull] # Pull the latest cache before the scan
Scan a lockfile and list dependencies/licenses
OUT
@@ -82,7 +83,7 @@ RSpec.describe '`spandx scan` command', type: :cli do
expect(output).to eq(expected_output)
end
- pending 'executes `spandx scan yarnfile.lock`' do
+ it 'executes `spandx scan yarnfile.lock`' do
output = `spandx scan #{fixture_file('js/yarn.lock')}`
expect(output).to eq(fixture_file_content('js/yarn.lock.expected'))
end