summaryrefslogtreecommitdiff
path: root/spec/integration/dotnet
diff options
context:
space:
mode:
Diffstat (limited to 'spec/integration/dotnet')
-rw-r--r--spec/integration/dotnet/examples_spec.rb2
-rw-r--r--spec/integration/dotnet/nuget_spec.rb6
2 files changed, 4 insertions, 4 deletions
diff --git a/spec/integration/dotnet/examples_spec.rb b/spec/integration/dotnet/examples_spec.rb
index 13f4712..8b325b7 100644
--- a/spec/integration/dotnet/examples_spec.rb
+++ b/spec/integration/dotnet/examples_spec.rb
@@ -5,7 +5,7 @@ RSpec.describe ".NET Core" do
runner.clone('https://github.com/microsoft/RockPaperScissorsLizardSpock.git')
report = runner.scan(env: { 'LICENSE_FINDER_CLI_OPTS' => '--recursive' })
- expect(report).to match_schema(version: '2.0')
+ expect(report).to match_schema
expect(report[:licenses].count).not_to be_zero
expect(report[:dependencies].count).not_to be_zero
end
diff --git a/spec/integration/dotnet/nuget_spec.rb b/spec/integration/dotnet/nuget_spec.rb
index 6eeb261..c97c352 100644
--- a/spec/integration/dotnet/nuget_spec.rb
+++ b/spec/integration/dotnet/nuget_spec.rb
@@ -26,7 +26,7 @@ RSpec.describe "nuget" do
runner.add_file('packages.config', packages_config)
report = runner.scan
- expect(report).to match_schema(version: '2.0')
+ expect(report).to match_schema
expect(report[:licenses].count).not_to be_zero
expect(report.dependency_names).to match_array([
"Microsoft.CodeDom.Providers.DotNetCompilerPlatform",
@@ -67,7 +67,7 @@ RSpec.describe "nuget" do
runner.add_file('winforms/packages.config', winforms_packages)
report = runner.scan(env: { 'LICENSE_FINDER_CLI_OPTS' => '--recursive' })
- expect(report).to match_schema(version: '2.0')
+ expect(report).to match_schema
expect(report.licenses_for('jive')).to match_array(['MIT'])
expect(report.licenses_for('MvcMailer')).to match_array(['MIT'])
end
@@ -87,7 +87,7 @@ RSpec.describe "nuget" do
runner.add_file('packages.config', packages)
report = runner.scan
- expect(report).to match_schema(version: '2.0')
+ expect(report).to match_schema
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.dependency_names).to match_array([