summaryrefslogtreecommitdiff
path: root/spec/support/integration_test_helper.rb
diff options
context:
space:
mode:
authorCan Eldem <celdem@gitlab.com>2020-03-20 10:31:37 +0000
committerCan Eldem <celdem@gitlab.com>2020-03-20 10:31:37 +0000
commitd9ddfb4662dc3d9ba283e7832f6d1ec0e1451d25 (patch)
tree417c4a313b1d6428c1a43f38278d2c828a36b293 /spec/support/integration_test_helper.rb
parentdf97efaccfc0a5d4e3ef564e74c60987f65ff6fa (diff)
parent43fec0e1e3151371929139c4f67c43e7f81f1a80 (diff)
Merge branch 'java-maven-multimodules' into 'master'v3.1.2
Detect all licenses for maven multi-module projects. See merge request gitlab-org/security-products/license-management!123
Diffstat (limited to 'spec/support/integration_test_helper.rb')
-rw-r--r--spec/support/integration_test_helper.rb4
1 files changed, 4 insertions, 0 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