Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-08-18 15:11:19 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-08-18 15:11:19 +0300
commitfba018726310be5fdf4014f18debbbabde19a8cd (patch)
treeb335c53c751983139d07f0e7b1fa757a19e1c5db /spec/controllers
parent3b4c0d27d5ad32fecdcc95e86bf919fc13830c5b (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/controllers')
-rw-r--r--spec/controllers/projects/packages/infrastructure_registry_controller_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/controllers/projects/packages/infrastructure_registry_controller_spec.rb b/spec/controllers/projects/packages/infrastructure_registry_controller_spec.rb
index dc5a022eb7b..fc741d0f3f6 100644
--- a/spec/controllers/projects/packages/infrastructure_registry_controller_spec.rb
+++ b/spec/controllers/projects/packages/infrastructure_registry_controller_spec.rb
@@ -18,9 +18,9 @@ RSpec.describe Projects::Packages::InfrastructureRegistryController do
it_behaves_like 'returning response status', :ok
- context 'when the feature is disabled' do
+ context 'when the packages registry is not available' do
before do
- stub_feature_flags(infrastructure_registry_page: false)
+ stub_config(packages: { enabled: false })
end
it_behaves_like 'returning response status', :not_found
@@ -34,9 +34,9 @@ RSpec.describe Projects::Packages::InfrastructureRegistryController do
it_behaves_like 'returning response status', :ok
- context 'when the feature is disabled' do
+ context 'when the packages registry is not available' do
before do
- stub_feature_flags(infrastructure_registry_page: false)
+ stub_config(packages: { enabled: false })
end
it_behaves_like 'returning response status', :not_found