From 1e0f4eddfff99189e798eca889159c638af61447 Mon Sep 17 00:00:00 2001 From: mo khan Date: Mon, 20 Jan 2020 12:01:33 -0700 Subject: Create spec that isolates a defect --- spec/integration/dotnet/nuget_spec.rb | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/spec/integration/dotnet/nuget_spec.rb b/spec/integration/dotnet/nuget_spec.rb index 8c2b727..6d82853 100644 --- a/spec/integration/dotnet/nuget_spec.rb +++ b/spec/integration/dotnet/nuget_spec.rb @@ -75,4 +75,28 @@ RSpec.describe ".NET Framework" do ]) end end + + context "when a project has a dependency that has it's own dependencies" do + let(:packages) do + <<-XML + + + + + XML + end + + pending 'produces a report that includes the dependencies of each dependency' do + runner.add_file('packages.config', packages) + report = runner.scan + + expect(report).not_to be_empty + expect(report).to match_schema(version: '2.0') + expect(report[:licenses].count).not_to be_zero + expect(report[:dependencies].map { |x| x[:name] }).to match_array([ + "NHibernate", + "Antlr3.Runtime", + ]) + end + end end -- cgit v1.2.3