diff options
Diffstat (limited to 'spec/support')
| -rw-r--r-- | spec/support/integration_test_helper.rb | 6 | ||||
| -rw-r--r-- | spec/support/matchers.rb | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/spec/support/integration_test_helper.rb b/spec/support/integration_test_helper.rb index d1ff14a..416438e 100644 --- a/spec/support/integration_test_helper.rb +++ b/spec/support/integration_test_helper.rb @@ -69,7 +69,11 @@ module IntegrationTestHelper end def scan(env: {}) - return {} unless execute(env, './bin/docker-test', project_path) + command = [ + '/usr/local/bin/ruby -I /opt/spandx-gitlab/lib /usr/local/bin/spandx scan --format=json -r spandx/gitlab -R -l /dev/stderr', + project_path + ].join(' ') + return {} unless execute(env, command) report_path = "#{project_path}/gl-license-management-report.json" return {} unless File.exist?(report_path) diff --git a/spec/support/matchers.rb b/spec/support/matchers.rb index 038c593..937b7cf 100644 --- a/spec/support/matchers.rb +++ b/spec/support/matchers.rb @@ -2,7 +2,7 @@ RSpec::Matchers.define :match_schema do |version: '2.0'| def schema_for(version) - License::Management.root.join("spec/fixtures/schema/v#{version}.json").to_s + Spandx::Gitlab.root.join("spec/fixtures/schema/v#{version}.json").to_s end match do |actual| |
