diff options
| author | mo khan <mo.khan@gmail.com> | 2020-01-20 12:01:33 -0700 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-01-20 12:01:33 -0700 |
| commit | 1e0f4eddfff99189e798eca889159c638af61447 (patch) | |
| tree | 2530aebf2b99171b6fd3c6935cc997005394ec06 /spec | |
| parent | 3d2b6c9c22e8bdc50ea7eb96084601a0366a4437 (diff) | |
Create spec that isolates a defect
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/integration/dotnet/nuget_spec.rb | 24 |
1 files changed, 24 insertions, 0 deletions
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 version="1.0" encoding="utf-8"?> +<packages> + <package id="NHibernate" version="5.2.6" /> +</packages> + 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 |
