summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/auth
diff options
context:
space:
mode:
authorFrancisco Lopez <fjlopez@gitlab.com>2017-11-17 13:33:21 +0100
committerFrancisco Lopez <fjlopez@gitlab.com>2017-11-17 13:33:21 +0100
commit4188c10c07d7b9bfaee5046ecfcc88cf8cca456b (patch)
treefce91b81fe42eb741fd3087e97a0449ba5efdcbe /spec/lib/gitlab/auth
parent7f0317917a6684189b1637ea73f90d258e8a72b6 (diff)
downloadgitlab-ce-4188c10c07d7b9bfaee5046ecfcc88cf8cca456b.tar.gz
Renaming AuthenticationException to AuthenticationErrormk-add-user-rate-limits
Diffstat (limited to 'spec/lib/gitlab/auth')
-rw-r--r--spec/lib/gitlab/auth/request_authenticator_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/lib/gitlab/auth/request_authenticator_spec.rb b/spec/lib/gitlab/auth/request_authenticator_spec.rb
index b7348f5cd78..ffcd90b9fcb 100644
--- a/spec/lib/gitlab/auth/request_authenticator_spec.rb
+++ b/spec/lib/gitlab/auth/request_authenticator_spec.rb
@@ -58,7 +58,7 @@ describe Gitlab::Auth::RequestAuthenticator do
expect(subject.find_sessionless_user).to be_blank
end
- it 'rescue API::APIGuard::AuthenticationException exceptions' do
+ it 'rescue Gitlab::Auth::AuthenticationError exceptions' do
allow_any_instance_of(described_class).to receive(:find_user_from_access_token).and_raise(Gitlab::Auth::UnauthorizedError)
expect(subject.find_sessionless_user).to be_blank