summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-04-01 15:47:45 +0000
committermo khan <mo.khan@gmail.com>2020-04-01 15:47:45 +0000
commitd6b721605bfe75d735abe80f365822075f49fa23 (patch)
treefe06c92cec535fb7bd35debd9ec9516ab8c023da /spec
parentfec5e888a10f6d6c0a64d17242d293fc9da6d3d2 (diff)
parentfeedd873aa2b04ab4d74f599de66364f341b0155 (diff)
Merge branch '212843-lf-cli-opts' into 'master'v3.3.1
Fix bug with forwarding LICENSE_FINDER_CLI_OPTS See merge request gitlab-org/security-products/license-management!131
Diffstat (limited to 'spec')
-rw-r--r--spec/integration/ruby/bundler_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/integration/ruby/bundler_spec.rb b/spec/integration/ruby/bundler_spec.rb
index 1245563..f2f2873 100644
--- a/spec/integration/ruby/bundler_spec.rb
+++ b/spec/integration/ruby/bundler_spec.rb
@@ -128,4 +128,14 @@ BUNDLED WITH
})
end
end
+
+ context "when passing custom options to license finder" do
+ it 'forwards the options to license finder' do
+ report = runner.scan(env: {
+ 'LICENSE_FINDER_CLI_OPTS' => "--debug --aggregate-paths=. ruby"
+ })
+
+ expect(report).to match_schema(version: '2.0')
+ end
+ end
end