diff options
Diffstat (limited to 'spec/views/admin')
-rw-r--r-- | spec/views/admin/application_settings/general.html.haml_spec.rb | 28 | ||||
-rw-r--r-- | spec/views/admin/dashboard/index.html.haml_spec.rb | 1 |
2 files changed, 0 insertions, 29 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 diff --git a/spec/views/admin/dashboard/index.html.haml_spec.rb b/spec/views/admin/dashboard/index.html.haml_spec.rb index e9223c84674..5494b908705 100644 --- a/spec/views/admin/dashboard/index.html.haml_spec.rb +++ b/spec/views/admin/dashboard/index.html.haml_spec.rb @@ -17,7 +17,6 @@ RSpec.describe 'admin/dashboard/index.html.haml' do allow(view).to receive(:admin?).and_return(true) allow(view).to receive(:current_application_settings).and_return(Gitlab::CurrentSettings.current_application_settings) - allow(view).to receive(:show_license_breakdown?).and_return(false) end it "shows version of GitLab Workhorse" do |