summaryrefslogtreecommitdiff
path: root/spec/gitlab_projects_spec.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-02-06 17:41:23 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-02-06 17:41:23 +0200
commit768845ef08f69f408e85afad0e8497e4db4b37ab (patch)
treec679a36a70db3cef9243afa41cb31098b9eea695 /spec/gitlab_projects_spec.rb
parent9a407166fb5ec31e4bee70d165bb345ee9e06a6b (diff)
downloadgitlab-shell-768845ef08f69f408e85afad0e8497e4db4b37ab.tar.gz
Fix tests
Diffstat (limited to 'spec/gitlab_projects_spec.rb')
-rw-r--r--spec/gitlab_projects_spec.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/gitlab_projects_spec.rb b/spec/gitlab_projects_spec.rb
index 688c878..38af894 100644
--- a/spec/gitlab_projects_spec.rb
+++ b/spec/gitlab_projects_spec.rb
@@ -31,7 +31,9 @@ describe GitlabProjects do
end
it "should receive valid cmd" do
- valid_cmd = "cd #{tmp_repo_path} && git init --bare && ln -s #{ROOT_PATH}/hooks/post-receive #{tmp_repo_path}/hooks/post-receive"
+ valid_cmd = "cd #{tmp_repo_path} && git init --bare"
+ valid_cmd << " && ln -s #{ROOT_PATH}/hooks/post-receive #{tmp_repo_path}/hooks/post-receive"
+ valid_cmd << " && ln -s #{ROOT_PATH}/hooks/update #{tmp_repo_path}/hooks/update"
@gl_projects.should_receive(:system).with(valid_cmd)
@gl_projects.send :add_project
end