diff options
| author | mo khan <mo.khan@gmail.com> | 2020-03-03 16:41:04 -0700 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-03-03 16:41:04 -0700 |
| commit | 843370d852b760f58ed69d911d351ee31ba2a18f (patch) | |
| tree | 1e5324ee0d5db5fccc9a22c8deb5d2a113ff1d1c /spec/unit/dotnet | |
| parent | 5947b65e988faff5ffa7a0825fe34e36a678e594 (diff) | |
Convert nuget index to use csv files
Diffstat (limited to 'spec/unit/dotnet')
| -rw-r--r-- | spec/unit/dotnet/index_spec.rb | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/spec/unit/dotnet/index_spec.rb b/spec/unit/dotnet/index_spec.rb index 4055e0d..d858548 100644 --- a/spec/unit/dotnet/index_spec.rb +++ b/spec/unit/dotnet/index_spec.rb @@ -9,28 +9,6 @@ RSpec.describe Spandx::Dotnet::Index do FileUtils.rm_r(directory, force: true, secure: true) end - describe '#read' do - let(:key) { %w[x y z] } - let(:data) { SecureRandom.uuid } - - before do - subject.write(key, data) - end - - specify { expect(subject.read(key)).to eql(data) } - end - - describe '#indexed?' do - let(:key) { %w[x y z] } - let(:data) { SecureRandom.uuid } - - before do - subject.write(key, data) - end - - specify { expect(subject).to be_indexed(key) } - end - describe '#update!' do let(:catalogue) { Spandx::Spdx::Catalogue.from_file(fixture_file('spdx/json/licenses.json')) } let(:gateway) { instance_double(Spandx::Dotnet::NugetGateway, host: 'api.nuget.org') } @@ -43,6 +21,6 @@ RSpec.describe Spandx::Dotnet::Index do subject.update!(catalogue: catalogue, limit: 10) end - specify { expect(subject.read(['api.nuget.org', 'Polaroider', '0.2.0'])).to eql('MIT') } + specify { expect(subject.licenses_for(name: 'Polaroider', version: '0.2.0')).to match_array(['MIT']) } end end |
