diff options
author | Jacob Vosmaer <jacob@gitlab.com> | 2016-06-06 17:40:26 +0200 |
---|---|---|
committer | Jacob Vosmaer <jacob@gitlab.com> | 2016-06-06 17:40:26 +0200 |
commit | 07f49626d01ddffcd127e937c528b74b8248043b (patch) | |
tree | 4bc36661d4c7dca16e5f521927bd80d98347a8ab /spec/requests/jwt_controller_spec.rb | |
parent | 3f3b036defe4f22656f945f341c1d7da06d5543c (diff) | |
download | gitlab-ce-07f49626d01ddffcd127e937c528b74b8248043b.tar.gz |
Fix tests
Diffstat (limited to 'spec/requests/jwt_controller_spec.rb')
-rw-r--r-- | spec/requests/jwt_controller_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/requests/jwt_controller_spec.rb b/spec/requests/jwt_controller_spec.rb index d006ff195cf..c995993a853 100644 --- a/spec/requests/jwt_controller_spec.rb +++ b/spec/requests/jwt_controller_spec.rb @@ -44,7 +44,7 @@ describe JwtController do let(:user) { create(:user) } let(:headers) { { authorization: credentials('user', 'password') } } - before { expect_any_instance_of(Gitlab::Auth).to receive(:find).with('user', 'password').and_return(user) } + before { expect(Gitlab::Auth).to receive(:find_in_gitlab_or_ldap).with('user', 'password').and_return(user) } subject! { get '/jwt/auth', parameters, headers } |