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>2020-06-04 00:08:23 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-06-04 00:08:23 +0300
commitfc92738a0245f1be88250448bebd9c20e9849444 (patch)
tree5e66f8a08c2b5dfa9cd76d28b0fe0a6a409ca616 /spec/factories/projects.rb
parent7484304eaa266f22f048a76d490494b6337c9555 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/factories/projects.rb')
-rw-r--r--spec/factories/projects.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/factories/projects.rb b/spec/factories/projects.rb
index 45caa7a2b6a..4affab295b8 100644
--- a/spec/factories/projects.rb
+++ b/spec/factories/projects.rb
@@ -297,6 +297,12 @@ FactoryBot.define do
trait :auto_devops_disabled do
association :auto_devops, factory: [:project_auto_devops, :disabled]
end
+
+ trait :without_container_expiration_policy do
+ after :create do |project|
+ project.container_expiration_policy.destroy!
+ end
+ end
end
# Project with empty repository