There was an error while loading. Please reload this page.
1 parent 9a40716 commit 768845eCopy full SHA for 768845e
spec/gitlab_projects_spec.rb
@@ -31,7 +31,9 @@
31
end
32
33
it "should receive valid cmd" do
34
- 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"
35
+ valid_cmd << " && ln -s #{ROOT_PATH}/hooks/post-receive #{tmp_repo_path}/hooks/post-receive"
36
+ valid_cmd << " && ln -s #{ROOT_PATH}/hooks/update #{tmp_repo_path}/hooks/update"
37
@gl_projects.should_receive(:system).with(valid_cmd)
38
@gl_projects.send :add_project
39
0 commit comments