diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-16 21:25:58 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-16 21:25:58 +0300 |
commit | a5f4bba440d7f9ea47046a0a561d49adf0a1e6d4 (patch) | |
tree | fb69158581673816a8cd895f9d352dcb3c678b1e /spec/views/admin | |
parent | d16b2e8639e99961de6ddc93909f3bb5c1445ba1 (diff) |
Add latest changes from gitlab-org/gitlab@14-0-stable-eev14.0.0-rc42
Diffstat (limited to 'spec/views/admin')
-rw-r--r-- | spec/views/admin/users/_user.html.haml_spec.rb | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/spec/views/admin/users/_user.html.haml_spec.rb b/spec/views/admin/users/_user.html.haml_spec.rb deleted file mode 100644 index aed05e4ea9b..00000000000 --- a/spec/views/admin/users/_user.html.haml_spec.rb +++ /dev/null @@ -1,51 +0,0 @@ -# frozen_string_literal: true - -require 'spec_helper' - -RSpec.describe 'admin/users/_user.html.haml' do - before do - allow(view).to receive(:user).and_return(user) - end - - context 'internal users' do - context 'when showing a `Ghost User`' do - let(:user) { create(:user, :ghost) } - - it 'does not render action buttons' do - render - - expect(rendered).not_to have_selector('.table-action-buttons') - end - end - - context 'when showing a `Bot User`' do - let(:user) { create(:user, user_type: :alert_bot) } - - it 'does not render action buttons' do - render - - expect(rendered).not_to have_selector('.table-action-buttons') - end - end - - context 'when showing a `Migration User`' do - let(:user) { create(:user, user_type: :migration_bot) } - - it 'does not render action buttons' do - render - - expect(rendered).not_to have_selector('.table-action-buttons') - end - end - end - - context 'when showing an external user' do - let(:user) { create(:user) } - - it 'renders action buttons' do - render - - expect(rendered).to have_selector('.table-action-buttons') - end - end -end |