summaryrefslogtreecommitdiff
path: root/spec/gitlab_keys_spec.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-02-05 10:28:19 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-02-05 10:28:19 +0200
commit58347e5321e42a1ea66663f96454dbb8632a0017 (patch)
tree3bbe572ac808345c4ab73b3a20a7f12b725f61cf /spec/gitlab_keys_spec.rb
parent2b01b84f8d0cf469bdd3b031b1658db6fd8c0f52 (diff)
downloadgitlab-shell-58347e5321e42a1ea66663f96454dbb8632a0017.tar.gz
gitlab-init
Diffstat (limited to 'spec/gitlab_keys_spec.rb')
-rw-r--r--spec/gitlab_keys_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/gitlab_keys_spec.rb b/spec/gitlab_keys_spec.rb
index 620b7b9..9d3df34 100644
--- a/spec/gitlab_keys_spec.rb
+++ b/spec/gitlab_keys_spec.rb
@@ -20,7 +20,7 @@ describe GitlabKeys do
end
it "should receive valid cmd" do
- valid_cmd = "echo 'command=\"/home/git/gitlab-shell/spec/../bin/gitlab-shell dzaporozhets\",no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty ssh-rsa AAAAB3NzaDAxx2E' >> /home/git/.ssh/authorized_keys"
+ valid_cmd = "echo 'command=\"#{ROOT_PATH}/bin/gitlab-shell dzaporozhets\",no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty ssh-rsa AAAAB3NzaDAxx2E' >> /home/git/.ssh/authorized_keys"
@gl_keys.should_receive(:system).with(valid_cmd)
@gl_keys.send :add_key
end