summaryrefslogtreecommitdiff
path: root/spec/gitlab_projects_spec.rb
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2013-11-01 13:29:17 +0100
committerJacob Vosmaer <contact@jacobvosmaer.nl>2013-11-01 13:57:01 +0100
commit7ba6725f3c8e49104407807468b27596a51a1d5e (patch)
tree3b916f3b012d1aaf9add91b4ebdb83abcda61ddb /spec/gitlab_projects_spec.rb
parente76ad1dcb81e7be46f89b2fa4b848078a6318845 (diff)
downloadgitlab-shell-7ba6725f3c8e49104407807468b27596a51a1d5e.tar.gz
Bypass the shell in GitlabProjects
Diffstat (limited to 'spec/gitlab_projects_spec.rb')
-rw-r--r--spec/gitlab_projects_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/gitlab_projects_spec.rb b/spec/gitlab_projects_spec.rb
index 5c0b5b7..bbe27e2 100644
--- a/spec/gitlab_projects_spec.rb
+++ b/spec/gitlab_projects_spec.rb
@@ -101,8 +101,8 @@ describe GitlabProjects do
end
it "should receive valid cmd" do
- valid_cmd = "cd #{tmp_repo_path} && git init --bare"
- gl_projects.should_receive(:system).with(valid_cmd).and_return(true)
+ valid_cmd = ['git', "--git-dir=#{tmp_repo_path}", 'init', '--bare']
+ gl_projects.should_receive(:system).with(*valid_cmd).and_return(true)
gl_projects.should_receive(:create_hooks).with(tmp_repo_path)
gl_projects.exec
end