Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2014-02-25 15:14:17 +0400
committerJacob Vosmaer <contact@jacobvosmaer.nl>2014-03-03 11:40:30 +0400
commitb30b9c9c464e3b6611c80b6436c8346eb2bbcccf (patch)
tree4d0f674d963dcd7960a319aaa27ff4b7078b27ec /spec
parentdd703b3e2a5e7d4dc58f76fa65f4585825f6c3a5 (diff)
Replace shell commands with FileUtils
Diffstat (limited to 'spec')
-rw-r--r--spec/support/test_env.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/support/test_env.rb b/spec/support/test_env.rb
index 43aec1cd43d..711f707d83d 100644
--- a/spec/support/test_env.rb
+++ b/spec/support/test_env.rb
@@ -117,7 +117,7 @@ module TestEnv
repo = repo(namespace, name)
# Symlink tmp/repositories/gitlabhq to tmp/test-git-base-path/gitlabhq
- system("ln -s -f #{seed_repo_path()} #{repo}")
+ FileUtils.ln_sf(seed_repo_path, repo)
create_satellite(repo, namespace, name)
end
@@ -181,7 +181,7 @@ module TestEnv
# Symlink tmp/satellite/gitlabhq to tmp/test-git-base-path/satellite/gitlabhq, create the directory if it doesn't exist already
satellite_dir = File.dirname(satellite_repo)
FileUtils.mkdir_p(satellite_dir) unless File.exists?(satellite_dir)
- system("ln -s -f #{seed_satellite_path} #{satellite_repo}")
+ FileUtils.ln_sf(seed_satellite_path, satellite_repo)
end
def create_temp_repo(path)