summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorAlejandro Rodríguez <alejorro70@gmail.com>2016-10-07 11:23:12 -0300
committerAlejandro Rodríguez <alejorro70@gmail.com>2016-10-07 11:23:12 -0300
commit47723a6872f5506c38c98386ef215a1aca8a690e (patch)
tree8aa4fd3f061cdc9115083627bdb1393dd1f856b9 /spec
parentca7c80ce2a07a7e581fcf991b5ecc06b0e6224f9 (diff)
downloadgitlab-shell-47723a6872f5506c38c98386ef215a1aca8a690e.tar.gz
Fix rsync with ionice command building
Diffstat (limited to 'spec')
-rw-r--r--spec/gitlab_projects_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/gitlab_projects_spec.rb b/spec/gitlab_projects_spec.rb
index 149d53f..175c929 100644
--- a/spec/gitlab_projects_spec.rb
+++ b/spec/gitlab_projects_spec.rb
@@ -229,7 +229,7 @@ describe GitlabProjects do
it "should attempt rsync with ionice first" do
expect(gl_projects).to receive(:system).with(
- 'ionice -c2 -n7 rsync', '-a', '--delete', '--rsync-path="ionice -c2 -n7 rsync"',
+ 'ionice', '-c2', '-n7', 'rsync', '-a', '--delete', '--rsync-path="ionice -c2 -n7 rsync"',
"#{tmp_repo_path}/", new_repo_path
).and_return(true)
@@ -238,7 +238,7 @@ describe GitlabProjects do
it "should attempt rsync without ionice if with ionice fails" do
expect(gl_projects).to receive(:system).with(
- 'ionice -c2 -n7 rsync', '-a', '--delete', '--rsync-path="ionice -c2 -n7 rsync"',
+ 'ionice', '-c2', '-n7', 'rsync', '-a', '--delete', '--rsync-path="ionice -c2 -n7 rsync"',
"#{tmp_repo_path}/", new_repo_path
).and_return(false)
@@ -251,7 +251,7 @@ describe GitlabProjects do
it "should fail if both rsync attempts fail" do
expect(gl_projects).to receive(:system).with(
- 'ionice -c2 -n7 rsync', '-a', '--delete', '--rsync-path="ionice -c2 -n7 rsync"',
+ 'ionice', '-c2', '-n7', 'rsync', '-a', '--delete', '--rsync-path="ionice -c2 -n7 rsync"',
"#{tmp_repo_path}/", new_repo_path
).and_return(false)