summaryrefslogtreecommitdiff
path: root/spec/gitlab_access_spec.rb
diff options
context:
space:
mode:
authorAsh McKenzie <amckenzie@gitlab.com>2018-09-25 14:26:35 +0000
committerNick Thomas <nick@gitlab.com>2018-09-25 14:26:35 +0000
commit5f12a6a41a46800841ba02e72a6a4eb6d5e129ae (patch)
tree990d233c522bfbcba0a1000ce6d31e4b078fd8aa /spec/gitlab_access_spec.rb
parentdd54651b987c473fc42ae6c81daf0a47a92f9dca (diff)
downloadgitlab-shell-5f12a6a41a46800841ba02e72a6a4eb6d5e129ae.tar.gz
Display helpful feedback when proxying an SSH git push to secondary request (v2)
Diffstat (limited to 'spec/gitlab_access_spec.rb')
-rw-r--r--spec/gitlab_access_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/gitlab_access_spec.rb b/spec/gitlab_access_spec.rb
index c9922dd..92268e2 100644
--- a/spec/gitlab_access_spec.rb
+++ b/spec/gitlab_access_spec.rb
@@ -8,7 +8,7 @@ describe GitlabAccess do
let(:api) do
double(GitlabNet).tap do |api|
allow(api).to receive(:check_access).and_return(GitAccessStatus.new(true,
- HTTPCodes::HTTP_SUCCESS,
+ '200',
'ok',
gl_repository: 'project-1',
gl_id: 'user-123',
@@ -46,7 +46,7 @@ describe GitlabAccess do
before do
allow(api).to receive(:check_access).and_return(GitAccessStatus.new(
false,
- HTTPCodes::HTTP_UNAUTHORIZED,
+ '401',
'denied',
gl_repository: nil,
gl_id: nil,