2020-09-17 21:09:39 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
FactoryBot.define do
|
|
|
|
factory :pages_deployment, class: 'PagesDeployment' do
|
|
|
|
project
|
|
|
|
file_store { ObjectStorage::SUPPORTED_STORES.first }
|
|
|
|
|
2020-09-24 18:09:51 +00:00
|
|
|
after(:build) do |deployment, _evaluator|
|
|
|
|
deployment.file = fixture_file_upload(
|
|
|
|
Rails.root.join("spec/fixtures/pages.zip")
|
|
|
|
)
|
|
|
|
deployment.size = deployment.file.size
|
|
|
|
end
|
2020-09-17 21:09:39 +00:00
|
|
|
end
|
|
|
|
end
|