diff options
author | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2014-02-25 12:15:18 +0100 |
---|---|---|
committer | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2014-03-03 08:40:30 +0100 |
commit | d6b0ac96f7b2952edb8aad0efcd48e0bccd23fe0 (patch) | |
tree | 430c28c845eea9ca53103b7e5098cefd230dadc8 /spec/support | |
parent | b30b9c9c464e3b6611c80b6436c8346eb2bbcccf (diff) | |
download | gitlab-ce-d6b0ac96f7b2952edb8aad0efcd48e0bccd23fe0.tar.gz |
Invoke Kernel#system with separate arguments
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/test_env.rb | 13 |
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 |