diff options
| author | mo khan <mo.khan@gmail.com> | 2020-11-14 22:03:47 -0700 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-11-14 22:03:47 -0700 |
| commit | 786b5402260a007df6785ca1a4083015f6f212cc (patch) | |
| tree | d1fcbe51fe0fd25088860bb332c9d3708d89baa2 /spec/integration/cli | |
| parent | f0adffb43fdc5be5298767373f716b216ff2f4e9 (diff) | |
feat: parse dpkg catalogue
Diffstat (limited to 'spec/integration/cli')
| -rw-r--r-- | spec/integration/cli/scan_spec.rb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/spec/integration/cli/scan_spec.rb b/spec/integration/cli/scan_spec.rb index f9f3963..2c17ef7 100644 --- a/spec/integration/cli/scan_spec.rb +++ b/spec/integration/cli/scan_spec.rb @@ -32,7 +32,12 @@ RSpec.describe '`spandx scan` command', type: :cli do end it 'executes `spandx scan /lib/apk/db/installed' do - output = `spandx scan #{fixture_file('os/apk/db/installed')} 2> /dev/null` - expect(output).to eq(fixture_file_content('os/apk/db/installed.expected')) + output = `spandx scan #{fixture_file('os/lib/apk/db/installed')} 2> /dev/null` + expect(output).to eq(fixture_file_content('os/lib/apk/db/installed.expected')) + end + + it 'executes `spandx scan /var/lib/dpkg/status' do + output = `spandx scan #{fixture_file('os/var/lib/dpkg/status')} 2> /dev/null` + expect(output).to eq(fixture_file_content('os/var/lib/dpkg/status.expected')) end end |
