summaryrefslogtreecommitdiff
path: root/spec/models/pages
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-05-17 15:10:15 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2021-05-17 15:10:15 +0000
commit68c476dbd8a2c670aeeebffce8b63b554a3ac7f0 (patch)
treec46b90a5c131d8e8d7fb530f1b8f9390b8eb2613 /spec/models/pages
parenta62238de7302e54edafa3407a2dc8ba1a5f96e4d (diff)
downloadgitlab-ce-68c476dbd8a2c670aeeebffce8b63b554a3ac7f0.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/models/pages')
-rw-r--r--spec/models/pages/lookup_path_spec.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/spec/models/pages/lookup_path_spec.rb b/spec/models/pages/lookup_path_spec.rb
index e520f82c118..735f2225c21 100644
--- a/spec/models/pages/lookup_path_spec.rb
+++ b/spec/models/pages/lookup_path_spec.rb
@@ -52,11 +52,8 @@ RSpec.describe Pages::LookupPath do
expect(source[:path]).to eq(project.full_path + "/public/")
end
- it 'return nil when legacy storage is disabled and there is no deployment' do
- stub_feature_flags(pages_serve_from_legacy_storage: false)
- expect(Gitlab::ErrorTracking).to receive(:track_exception)
- .with(described_class::LegacyStorageDisabledError, project_id: project.id)
- .and_call_original
+ it 'return nil when local storage is disabled and there is no deployment' do
+ allow(Settings.pages.local_store).to receive(:enabled).and_return(false)
expect(source).to eq(nil)
end