summaryrefslogtreecommitdiff
path: root/spec/factories/packages.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/factories/packages.rb')
-rw-r--r--spec/factories/packages.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/factories/packages.rb b/spec/factories/packages.rb
index 73870a28b89..5543be4aa82 100644
--- a/spec/factories/packages.rb
+++ b/spec/factories/packages.rb
@@ -22,7 +22,14 @@ FactoryBot.define do
end
factory :debian_package do
+ sequence(:name) { |n| "package-#{n}" }
+ sequence(:version) { |n| "1.0-#{n}" }
package_type { :debian }
+
+ factory :debian_incoming do
+ name { 'incoming' }
+ version { nil }
+ end
end
factory :npm_package do