summaryrefslogtreecommitdiff
path: root/spec/factories/packages/packages.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/factories/packages/packages.rb')
-rw-r--r--spec/factories/packages/packages.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/factories/packages/packages.rb b/spec/factories/packages/packages.rb
index bb9aa95fe08..153518f4cd3 100644
--- a/spec/factories/packages/packages.rb
+++ b/spec/factories/packages/packages.rb
@@ -247,6 +247,12 @@ FactoryBot.define do
sequence(:name) { |n| "generic-package-#{n}" }
version { '1.0.0' }
package_type { :generic }
+
+ trait(:with_zip_file) do
+ after :create do |package|
+ create :package_file, :generic_zip, package: package
+ end
+ end
end
end
end