diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-09-29 16:00:00 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-09-29 16:00:19 +0300 |
commit | 95328dd30a55cb66da05352131e7a981b44e1348 (patch) | |
tree | 0777a77e26ce6cc0ced4536914fd49408df59eeb /spec/controllers | |
parent | 77e5b153659e884a5fa8442d675f2b88e9de2dd2 (diff) |
Add latest changes from gitlab-org/security/gitlab@14-3-stable-ee
Diffstat (limited to 'spec/controllers')
-rw-r--r-- | spec/controllers/admin/users_controller_spec.rb | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/spec/controllers/admin/users_controller_spec.rb b/spec/controllers/admin/users_controller_spec.rb index 3a2b5dcb99d..4d2c311c9a4 100644 --- a/spec/controllers/admin/users_controller_spec.rb +++ b/spec/controllers/admin/users_controller_spec.rb @@ -815,20 +815,5 @@ RSpec.describe Admin::UsersController do expect(response).to have_gitlab_http_status(:not_found) end end - - context 'when impersonating an admin and attempting to impersonate again' do - let(:admin2) { create(:admin) } - - before do - post :impersonate, params: { id: admin2.username } - end - - it 'does not allow double impersonation', :aggregate_failures do - post :impersonate, params: { id: user.username } - - expect(flash[:alert]).to eq(_('You are already impersonating another user')) - expect(warden.user).to eq(admin2) - end - end end end |