summaryrefslogtreecommitdiff
path: root/spec/unit/dotnet
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-04-25 16:09:16 -0600
committermo khan <mo.khan@gmail.com>2020-04-25 16:09:16 -0600
commita73590a3f54c0c0022328b2b499177ea832cf414 (patch)
treefa98e89b1a0a64c885165bbeb54fac3d7a6a095e /spec/unit/dotnet
parent0ca61c8b1426651b19a6422582b2c3f2cbbd3358 (diff)
Fix some specs, break others
Diffstat (limited to 'spec/unit/dotnet')
-rw-r--r--spec/unit/dotnet/index_spec.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/unit/dotnet/index_spec.rb b/spec/unit/dotnet/index_spec.rb
index 2550e35..2a873de 100644
--- a/spec/unit/dotnet/index_spec.rb
+++ b/spec/unit/dotnet/index_spec.rb
@@ -12,13 +12,14 @@ RSpec.describe Spandx::Dotnet::Index do
describe '#update!' do
let(:item) { { 'id' => 'Polaroider', 'version' => '0.2.0', 'licenseExpression' => 'MIT' } }
+ let(:cache) { Spandx::Core::Cache.new('nuget', root: directory) }
before do
allow(gateway).to receive(:each).and_yield(item)
- subject.update!(db: db)
+ subject.update!
end
- specify { expect(db.licenses_for('Polaroider', '0.2.0')).to match_array(['MIT']) }
+ specify { expect(cache.licenses_for('Polaroider', '0.2.0')).to match_array(['MIT']) }
end
end