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:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-03-24 16:58:25 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-03-24 16:58:25 +0300
commit7ada193e0fd28b4a6eca1fda7dda6f0ebe6b2d72 (patch)
tree4d1d27067cfe327615873b4b36a569357de88067 /spec/services
parentdce706bfcbddf7952e2c42c0c42825044cbb43a2 (diff)
Fix specs for container repository destroy service
Diffstat (limited to 'spec/services')
-rw-r--r--spec/services/container_images/destroy_service_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/services/container_images/destroy_service_spec.rb b/spec/services/container_images/destroy_service_spec.rb
index ab5ebe5eac8..6931b503e6d 100644
--- a/spec/services/container_images/destroy_service_spec.rb
+++ b/spec/services/container_images/destroy_service_spec.rb
@@ -13,6 +13,10 @@ describe ContainerImages::DestroyService, '#execute', :services do
container_repositories: [container_repository])
end
+ before do
+ stub_container_registry_config(enabled: true)
+ end
+
it { expect(container_repository).to be_valid }
it { expect(project.container_repositories).not_to be_empty }