From 9f9e1d10735e52a5feee0788a1a0390c8812c9b5 Mon Sep 17 00:00:00 2001 From: mo khan Date: Wed, 22 Jan 2020 15:17:20 -0700 Subject: Include list of expected licenses --- spec/integration/dotnet/nuget_spec.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/spec/integration/dotnet/nuget_spec.rb b/spec/integration/dotnet/nuget_spec.rb index 6d82853..634a8f5 100644 --- a/spec/integration/dotnet/nuget_spec.rb +++ b/spec/integration/dotnet/nuget_spec.rb @@ -93,9 +93,13 @@ RSpec.describe ".NET Framework" do expect(report).not_to be_empty expect(report).to match_schema(version: '2.0') expect(report[:licenses].count).not_to be_zero + expect(report[:licenses].map { |x| x[:id] }.uniq).to match_array(['LGPL-2.1', 'Apache-2.0', 'BSD-3-Clause']) expect(report[:dependencies].map { |x| x[:name] }).to match_array([ - "NHibernate", + 'Iesi.Collections', + 'Remotion.Linq', + 'Remotion.Linq.EagerFetching', "Antlr3.Runtime", + "NHibernate", ]) end end -- cgit v1.2.3