diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-12-17 11:59:07 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-12-17 11:59:07 +0000 |
commit | 8b573c94895dc0ac0e1d9d59cf3e8745e8b539ca (patch) | |
tree | 544930fb309b30317ae9797a9683768705d664c4 /spec/views/admin/application_settings/general.html.haml_spec.rb | |
parent | 4b1de649d0168371549608993deac953eb692019 (diff) | |
download | gitlab-ce-8b573c94895dc0ac0e1d9d59cf3e8745e8b539ca.tar.gz |
Add latest changes from gitlab-org/gitlab@13-7-stable-eev13.7.0-rc42
Diffstat (limited to 'spec/views/admin/application_settings/general.html.haml_spec.rb')
-rw-r--r-- | spec/views/admin/application_settings/general.html.haml_spec.rb | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/spec/views/admin/application_settings/general.html.haml_spec.rb b/spec/views/admin/application_settings/general.html.haml_spec.rb index 5343847d755..434ca8bf0e7 100644 --- a/spec/views/admin/application_settings/general.html.haml_spec.rb +++ b/spec/views/admin/application_settings/general.html.haml_spec.rb @@ -33,32 +33,4 @@ RSpec.describe 'admin/application_settings/general.html.haml' do end end end - - describe 'Maintenance mode' do - let(:maintenance_mode_flag) { true } - - before do - assign(:application_setting, app_settings) - stub_feature_flags(maintenance_mode: maintenance_mode_flag) - allow(view).to receive(:current_user).and_return(user) - end - - context 'when maintenance_mode feature is enabled' do - it 'show the Maintenance mode section' do - render - - expect(rendered).to have_css('#js-maintenance-mode-toggle') - end - end - - context 'when maintenance_mode feature is disabled' do - let(:maintenance_mode_flag) { false } - - it 'hide the Maintenance mode section' do - render - - expect(rendered).not_to have_css('#js-maintenance-mode-toggle') - end - end - end end |