summaryrefslogtreecommitdiff
path: root/spec/integration/java
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-03-17 14:58:39 -0600
committermo khan <mo.khan@gmail.com>2020-03-18 10:29:40 -0600
commit8b3691b1e817779890af87f7709072599f83382c (patch)
treecff27446145d28b911d05842f446dd5fd112edca /spec/integration/java
parenta3095228fe3ac32cf1e148879ab2195026028cdc (diff)
Fix how options are passed in spec
Diffstat (limited to 'spec/integration/java')
-rw-r--r--spec/integration/java/maven_spec.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/integration/java/maven_spec.rb b/spec/integration/java/maven_spec.rb
index 9b0ee45..6d11ae5 100644
--- a/spec/integration/java/maven_spec.rb
+++ b/spec/integration/java/maven_spec.rb
@@ -15,10 +15,11 @@ RSpec.describe "maven" do
it 'downloads packages from by using a custom `settings.xml`' do
runner.add_file('pom.xml', fixture_file_content('pom-public-gitlab-repository.xml'))
- runner.add_file('my_settings.xml', fixture_file_content(' custom-maven-settings.xml'))
+ runner.add_file('my_settings.xml', fixture_file_content('custom-maven-settings.xml'))
report = runner.scan(env: {
- 'LICENSE_FINDER_CLI_OPTS' => '--maven-options="-S my_settings.xml"'
+ 'LICENSE_FINDER_CLI_OPTS' => "--maven-options=--settings my_settings.xml",
+ 'CI_PROJECT_ID' => 'invalid'
})
expect(report).to match_schema(version: '2.0')