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>2023-11-29 21:12:41 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-11-29 21:12:41 +0300
commit2d239d2421eea466ff5c51aebdbf05a18ded20c7 (patch)
tree85f9c0b6063158ff01112b9945f57bc35bd47970 /spec/factories
parent762918f04a2ee8f4f7fac3d551c14af8dd30f17c (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/factories')
-rw-r--r--spec/factories/packages/nuget/symbol.rb6
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