summaryrefslogtreecommitdiff
path: root/spec/factories/packages
diff options
context:
space:
mode:
Diffstat (limited to 'spec/factories/packages')
-rw-r--r--spec/factories/packages/package_files.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/factories/packages/package_files.rb b/spec/factories/packages/package_files.rb
index 845fd882beb..5eac0036b91 100644
--- a/spec/factories/packages/package_files.rb
+++ b/spec/factories/packages/package_files.rb
@@ -6,6 +6,8 @@ FactoryBot.define do
file_name { 'somefile.txt' }
+ status { :default }
+
transient do
file_fixture { 'spec/fixtures/packages/conan/recipe_files/conanfile.py' }
end
@@ -14,6 +16,10 @@ FactoryBot.define do
package_file.file = fixture_file_upload(evaluator.file_fixture)
end
+ trait :pending_destruction do
+ status { :pending_destruction }
+ end
+
factory :conan_package_file do
package { association(:conan_package, without_package_files: true) }