summaryrefslogtreecommitdiff
path: root/spec/unit
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-04-04 14:18:40 -0600
committermo khan <mo.khan@gmail.com>2020-04-04 14:18:40 -0600
commit04e2b6479eba7b8ce00a1d8227bac14a7fc29efb (patch)
tree3d50163214aae5736db0db4c0cde8bc7d8eb2d46 /spec/unit
parentaff104a67bcada25d5f0702e4fe9dba159dda443 (diff)
Fix incorrect test
Diffstat (limited to 'spec/unit')
-rw-r--r--spec/unit/cli/scan_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/cli/scan_spec.rb b/spec/unit/cli/scan_spec.rb
index b0a5fe1..cdfdf24 100644
--- a/spec/unit/cli/scan_spec.rb
+++ b/spec/unit/cli/scan_spec.rb
@@ -22,9 +22,9 @@ RSpec.describe Spandx::Cli::Commands::Scan do
end
end
- specify { expect(result['dependencies'].count).to be(2) }
+ specify { expect(result['dependencies'].count).to be(1) }
specify { expect(result).to include('version' => '1.0') }
- specify { expect(result['dependencies']).to include('name' => 'net-hippie', 'version' => '0.2.7', 'licenses' => ['MIT']) }
+ specify { expect(result['dependencies']).to match_array([{'name' => 'net-hippie', 'version' => '0.2.7', 'licenses' => ['MIT'] }]) }
end
context 'when recursively scanning a directory' do