Skip to content

Commit 768845e

Browse files
committed
Fix tests
1 parent 9a40716 commit 768845e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spec/gitlab_projects_spec.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@
3131
end
3232

3333
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"
34+
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"
3537
@gl_projects.should_receive(:system).with(valid_cmd)
3638
@gl_projects.send :add_project
3739
end

0 commit comments

Comments
 (0)