diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-02-18 15:30:35 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-02-18 15:30:35 +0000 |
commit | 1a5cc87d341dbd1bf7740f48cdb458de1f8d1fc6 (patch) | |
tree | a11f3682b329c2c1f5c37fb201134ba2c254e65f /spec | |
parent | a0a166e723005aea66e278c653542eb4e5cca11f (diff) | |
download | gitlab-ce-1a5cc87d341dbd1bf7740f48cdb458de1f8d1fc6.tar.gz |
Add latest changes from gitlab-org/gitlab@13-9-stable-ee
Diffstat (limited to 'spec')
-rw-r--r-- | spec/lib/gitlab_spec.rb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/spec/lib/gitlab_spec.rb b/spec/lib/gitlab_spec.rb index 5f945d5b9fc..c5738ae730f 100644 --- a/spec/lib/gitlab_spec.rb +++ b/spec/lib/gitlab_spec.rb @@ -363,8 +363,13 @@ RSpec.describe Gitlab do expect(described_class.maintenance_mode?).to eq(false) end - it 'returns false when maintenance mode feature flag is disabled' do - stub_feature_flags(maintenance_mode: false) + it 'returns false when maintenance mode column is not present' do + stub_maintenance_mode_setting(true) + + allow(::Gitlab::CurrentSettings.current_application_settings) + .to receive(:respond_to?) + .with(:maintenance_mode, false) + .and_return(false) expect(described_class.maintenance_mode?).to eq(false) end |