From 04e2b6479eba7b8ce00a1d8227bac14a7fc29efb Mon Sep 17 00:00:00 2001 From: mo khan Date: Sat, 4 Apr 2020 14:18:40 -0600 Subject: Fix incorrect test --- spec/unit/cli/scan_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spec/unit/cli') 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 -- cgit v1.2.3