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:15:18 +0400
committerJacob Vosmaer <contact@jacobvosmaer.nl>2014-03-03 11:40:30 +0400
commitd6b0ac96f7b2952edb8aad0efcd48e0bccd23fe0 (patch)
tree430c28c845eea9ca53103b7e5098cefd230dadc8 /spec
parentb30b9c9c464e3b6611c80b6436c8346eb2bbcccf (diff)
Invoke Kernel#system with separate arguments
Diffstat (limited to 'spec')
-rw-r--r--spec/support/test_env.rb13
1 files changed, 7 insertions, 6 deletions
diff --git a/spec/support/test_env.rb b/spec/support/test_env.rb
index 711f707d83d..77a669c0cc1 100644
--- a/spec/support/test_env.rb
+++ b/spec/support/test_env.rb
@@ -104,10 +104,12 @@ module TestEnv
def reset_satellite_dir
setup_stubs
- FileUtils.cd(seed_satellite_path) do
- `git reset --hard --quiet`
- `git clean -fx`
- `git checkout --quiet origin/master`
+ [
+ %W(git reset --hard --quiet),
+ %W(git clean -fx),
+ %W(git checkout --quiet origin/master)
+ ].each do |git_cmd|
+ system(*git_cmd, chdir: seed_satellite_path)
end
end
@@ -186,7 +188,6 @@ module TestEnv
def create_temp_repo(path)
FileUtils.mkdir_p path
- command = "git init --quiet --bare #{path};"
- system(command)
+ system(*%W(git init --quiet --bare -- #{path}))
end
end