summaryrefslogtreecommitdiff
path: root/spec/integration/dotnet/examples_spec.rb
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-04-14 12:50:13 -0600
committermo khan <mo.khan@gmail.com>2020-04-14 12:50:13 -0600
commitbae02b6ae73dda47dc86590b73c21a85bb7273a5 (patch)
tree148f331085f123903cbf3635ea8b20b5c279d964 /spec/integration/dotnet/examples_spec.rb
parent2b69afb35bd1b123e00d3efabce0d4c4aefdd008 (diff)
Migrate specs from gitlab-org/security-products/license-management
Diffstat (limited to 'spec/integration/dotnet/examples_spec.rb')
-rw-r--r--spec/integration/dotnet/examples_spec.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/integration/dotnet/examples_spec.rb b/spec/integration/dotnet/examples_spec.rb
new file mode 100644
index 0000000..13f4712
--- /dev/null
+++ b/spec/integration/dotnet/examples_spec.rb
@@ -0,0 +1,12 @@
+require 'spec_helper'
+
+RSpec.describe ".NET Core" do
+ it 'scans https://github.com/microsoft/RockPaperScissorsLizardSpock.git' 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[:licenses].count).not_to be_zero
+ expect(report[:dependencies].count).not_to be_zero
+ end
+end