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>2021-06-18 21:10:13 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-06-18 21:10:13 +0300
commitdd6e32bf47776514b8fe2abcfe7998503f16baab (patch)
treef47d5c93958146fcfc6dd0dba3a6e11a2f8061ab /spec/factories/packages.rb
parentc8cc2fe990c52cabcb9912b2b01b5bf16b33d88f (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/factories/packages.rb')
-rw-r--r--spec/factories/packages.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/factories/packages.rb b/spec/factories/packages.rb
index cedda8d0854..cd9c8a8bfbb 100644
--- a/spec/factories/packages.rb
+++ b/spec/factories/packages.rb
@@ -162,6 +162,12 @@ FactoryBot.define do
pkg.nuget_metadatum = build(:nuget_metadatum)
end
end
+
+ trait(:with_symbol_package) do
+ after :create do |package|
+ create :package_file, :snupkg, package: package, file_name: "#{package.name}.#{package.version}.snupkg"
+ end
+ end
end
factory :pypi_package do