summaryrefslogtreecommitdiff
path: root/spec/support/integration_test_helper.rb
diff options
context:
space:
mode:
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