summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-02-05 10:43:24 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-02-05 10:43:24 +0200
commita8b9cb85fc1ea861dc31bdbaaeb8c76b1b5cbfd7 (patch)
treee6556c21cbd35594f635d901f2eb8163c438d4df
parent23c76715a8a3fcf2fca20891d709c63ba4131fa5 (diff)
downloadgitlab-shell-a8b9cb85fc1ea861dc31bdbaaeb8c76b1b5cbfd7.tar.gz
use valid path for tests
-rw-r--r--spec/gitlab_projects_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/gitlab_projects_spec.rb b/spec/gitlab_projects_spec.rb
index 4722a35..688c878 100644
--- a/spec/gitlab_projects_spec.rb
+++ b/spec/gitlab_projects_spec.rb
@@ -31,7 +31,7 @@ describe GitlabProjects do
end
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.send :add_project
end