diff options
author | Ash McKenzie <amckenzie@gitlab.com> | 2018-08-20 14:44:05 +1000 |
---|---|---|
committer | Ash McKenzie <amckenzie@gitlab.com> | 2018-09-07 15:37:44 +1000 |
commit | 1ff3561895f361b79f46a059880ea122e3500d08 (patch) | |
tree | 9ddb7dd123af25567870b89fbf9b4402950654d6 /spec/gitlab_access_spec.rb | |
parent | ca93c218228cee959253a3d7ce53926e07654a45 (diff) | |
download | gitlab-shell-1ff3561895f361b79f46a059880ea122e3500d08.tar.gz |
GitlabAccessStatus needs HTTP response status code
Diffstat (limited to 'spec/gitlab_access_spec.rb')
-rw-r--r-- | spec/gitlab_access_spec.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/gitlab_access_spec.rb b/spec/gitlab_access_spec.rb index a4f633d..c9922dd 100644 --- a/spec/gitlab_access_spec.rb +++ b/spec/gitlab_access_spec.rb @@ -8,6 +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, 'ok', gl_repository: 'project-1', gl_id: 'user-123', @@ -45,6 +46,7 @@ describe GitlabAccess do before do allow(api).to receive(:check_access).and_return(GitAccessStatus.new( false, + HTTPCodes::HTTP_UNAUTHORIZED, 'denied', gl_repository: nil, gl_id: nil, |