Commit a8b9cb85 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

use valid path for tests

parent 23c76715
...@@ -31,7 +31,7 @@ describe GitlabProjects do ...@@ -31,7 +31,7 @@ describe GitlabProjects do
end end
it "should receive valid cmd" do it "should receive valid cmd" do
valid_cmd = "cd #{tmp_repo_path} && git init --bare && ln -s /home/git/gitlab-shell/hooks/post-receive #{tmp_repo_path}/hooks/post-receive" valid_cmd = "cd #{tmp_repo_path} && git init --bare && ln -s #{ROOT_PATH}/hooks/post-receive #{tmp_repo_path}/hooks/post-receive"
@gl_projects.should_receive(:system).with(valid_cmd) @gl_projects.should_receive(:system).with(valid_cmd)
@gl_projects.send :add_project @gl_projects.send :add_project
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment