diff options
| author | mo khan <mo.khan@gmail.com> | 2020-04-13 10:00:13 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-04-13 10:00:13 -0600 |
| commit | 6d0f31334989b86df730aa7a705677643e920942 (patch) | |
| tree | 9f913b38b1ee173224c3bcad5db36a243ef9a462 /spec/unit/dotnet | |
| parent | cd399214d15000ffa530042c57e66e7716618d20 (diff) | |
Extract map_from method
Diffstat (limited to 'spec/unit/dotnet')
| -rw-r--r-- | spec/unit/dotnet/nuget_gateway_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/dotnet/nuget_gateway_spec.rb b/spec/unit/dotnet/nuget_gateway_spec.rb index fe7fc10..1a4bd55 100644 --- a/spec/unit/dotnet/nuget_gateway_spec.rb +++ b/spec/unit/dotnet/nuget_gateway_spec.rb @@ -5,7 +5,7 @@ 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') } + let(:dependency) { instance_double(::Spandx::Core::Dependency, name: 'jive', version: '0.1.0') } specify do VCR.use_cassette('jive-0.1.0') do |
