diff options
Diffstat (limited to 'spec/support')
| -rw-r--r-- | spec/support/integration_test_helper.rb | 4 | ||||
| -rw-r--r-- | spec/support/shared.rb | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/spec/support/integration_test_helper.rb b/spec/support/integration_test_helper.rb index 9ecc8aa..25e670f 100644 --- a/spec/support/integration_test_helper.rb +++ b/spec/support/integration_test_helper.rb @@ -13,6 +13,10 @@ module IntegrationTestHelper IO.write(full_path, block_given? ? yield : content) end + def mount(dir:) + FileUtils.cp_r("#{dir}/.", project_path) + end + def clone(repo, branch: 'master') execute({}, "git", "clone", repo, project_path) Dir.chdir project_path do diff --git a/spec/support/shared.rb b/spec/support/shared.rb index 049191e..ba3d3cc 100644 --- a/spec/support/shared.rb +++ b/spec/support/shared.rb @@ -1,6 +1,6 @@ RSpec.shared_examples "each report version" do |language, package_manager, branch = 'master'| ['1.0', '1.1', '2.0'].each do |version| - context "when generating a `#{version}` report" do + context "when generating a `#{version}` report for #{package_manager}" do let(:url) { "https://gitlab.com/gitlab-org/security-products/tests/#{language}-#{package_manager}.git" } let(:expected_content) { JSON.parse(fixture_file_content("expected/#{language}/#{package_manager}/v#{version}.json")) } |
