diff options
Diffstat (limited to 'spec/views/admin/application_settings')
-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 |