diff options
author | Patricio Cano <suprnova32@gmail.com> | 2016-06-20 21:57:37 -0500 |
---|---|---|
committer | Patricio Cano <suprnova32@gmail.com> | 2016-07-05 18:03:29 -0500 |
commit | fd41b8a433164f36f7cf70b358115c5f56f06670 (patch) | |
tree | c5bf7d25769590aca26dba99626a6c51ef498508 /spec | |
parent | 1c18095c9f2b80d380122c8c71f98a07387c1e66 (diff) | |
download | gitlab-shell-fd41b8a433164f36f7cf70b358115c5f56f06670.tar.gz |
Simplify protocol assign, and populate ENV['PROTOCOL'] variable when calling hooks via SSH
Diffstat (limited to 'spec')
-rw-r--r-- | spec/gitlab_shell_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/gitlab_shell_spec.rb b/spec/gitlab_shell_spec.rb index 79fa49b..0b0a817 100644 --- a/spec/gitlab_shell_spec.rb +++ b/spec/gitlab_shell_spec.rb @@ -242,7 +242,7 @@ describe GitlabShell do after { subject.exec(ssh_cmd) } it "should call api.check_access" do - api.should_receive(:check_access).with('git-upload-pack', 'gitlab-ci.git', key_id, '_any') + api.should_receive(:check_access).with('git-upload-pack', 'gitlab-ci.git', key_id, '_any', 'ssh') end it "should disallow access and log the attempt if check_access returns false status" do |