diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-03 21:08:23 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-06-03 21:08:23 +0000 |
commit | fc92738a0245f1be88250448bebd9c20e9849444 (patch) | |
tree | 5e66f8a08c2b5dfa9cd76d28b0fe0a6a409ca616 /spec/factories | |
parent | 7484304eaa266f22f048a76d490494b6337c9555 (diff) | |
download | gitlab-ce-fc92738a0245f1be88250448bebd9c20e9849444.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/factories')
-rw-r--r-- | spec/factories/projects.rb | 6 |
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 |