diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-11-29 21:12:41 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-11-29 21:12:41 +0300 |
commit | 2d239d2421eea466ff5c51aebdbf05a18ded20c7 (patch) | |
tree | 85f9c0b6063158ff01112b9945f57bc35bd47970 /spec/factories | |
parent | 762918f04a2ee8f4f7fac3d551c14af8dd30f17c (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/factories')
-rw-r--r-- | spec/factories/packages/nuget/symbol.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/factories/packages/nuget/symbol.rb b/spec/factories/packages/nuget/symbol.rb index 665535de939..77d53ed1439 100644 --- a/spec/factories/packages/nuget/symbol.rb +++ b/spec/factories/packages/nuget/symbol.rb @@ -8,5 +8,11 @@ FactoryBot.define do size { 100.bytes } sequence(:signature) { |n| "b91a152048fc4b3883bf3cf73fbc03f#{n}FFFFFFFF" } file_sha256 { 'dd1aaf26c557685cc37f93f53a2b6befb2c2e679f5ace6ec7a26d12086f358be' } + + trait :stale do + after(:create) do |entry| + entry.update_attribute(:package_id, nil) + end + end end end |