summaryrefslogtreecommitdiff
path: root/spec/gitlab_shell_spec.rb
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2018-09-25 14:26:35 +0000
committerNick Thomas <nick@gitlab.com>2018-09-25 14:26:35 +0000
commit1cc2993f357c4467e4d45c54c01d2307103efb3e (patch)
tree990d233c522bfbcba0a1000ce6d31e4b078fd8aa /spec/gitlab_shell_spec.rb
parentdd54651b987c473fc42ae6c81daf0a47a92f9dca (diff)
parent5f12a6a41a46800841ba02e72a6a4eb6d5e129ae (diff)
downloadgitlab-shell-1cc2993f357c4467e4d45c54c01d2307103efb3e.tar.gz
Merge branch 'ash.mckenzie/display-feedback-v2' into 'master'
Display helpful feedback when proxying an SSH git push to secondary request (v2) See merge request gitlab-org/gitlab-shell!246
Diffstat (limited to 'spec/gitlab_shell_spec.rb')
-rw-r--r--spec/gitlab_shell_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/gitlab_shell_spec.rb b/spec/gitlab_shell_spec.rb
index 77fb6cd..eef572e 100644
--- a/spec/gitlab_shell_spec.rb
+++ b/spec/gitlab_shell_spec.rb
@@ -25,7 +25,7 @@ describe GitlabShell do
let(:gitaly_check_access) do
GitAccessStatus.new(
true,
- HTTPCodes::HTTP_SUCCESS,
+ '200',
'ok',
gl_repository: gl_repository,
gl_id: gl_id,
@@ -41,7 +41,7 @@ describe GitlabShell do
allow(api).to receive(:discover).and_return({ 'name' => 'John Doe', 'username' => 'testuser' })
allow(api).to receive(:check_access).and_return(GitAccessStatus.new(
true,
- HTTPCodes::HTTP_SUCCESS,
+ '200',
'ok',
gl_repository: gl_repository,
gl_id: gl_id,
@@ -262,7 +262,7 @@ describe GitlabShell do
let(:custom_action_gitlab_access_status) do
GitAccessStatus.new(
true,
- HTTPCodes::HTTP_MULTIPLE_CHOICES,
+ '300',
'Multiple Choices',
payload: fake_payload
)