diff options
| author | mo khan <mo.khan@gmail.com> | 2020-04-13 08:51:02 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-04-13 08:51:02 -0600 |
| commit | dde53770dcb2ce025a586d5e5ad9d1cf3ae2426f (patch) | |
| tree | 20c09f888e9459890d5d551d5632a2ca1497c4bc /spec/unit/dotnet | |
| parent | 65f9eec94c1631f662f215984ab863c385471857 (diff) | |
Provide gateway enough information to choose appropriate source
Diffstat (limited to 'spec/unit/dotnet')
| -rw-r--r-- | spec/unit/dotnet/nuget_gateway_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/unit/dotnet/nuget_gateway_spec.rb b/spec/unit/dotnet/nuget_gateway_spec.rb index 1fe02df..fe7fc10 100644 --- a/spec/unit/dotnet/nuget_gateway_spec.rb +++ b/spec/unit/dotnet/nuget_gateway_spec.rb @@ -5,9 +5,11 @@ RSpec.describe Spandx::Dotnet::NugetGateway do describe '#licenses_for' do context 'when the package specifies the license using an expression' do + let(:dependency) { double(name: 'jive', version: '0.1.0') } + specify do VCR.use_cassette('jive-0.1.0') do - expect(subject.licenses_for('jive', '0.1.0')).to match_array(['MIT']) + expect(subject.licenses_for(dependency)).to match_array(['MIT']) end end end |
