debian-mirror-gitlab/spec/factories/pages_deployments.rb
2021-01-30 21:13:32 +05:30

13 lines
290 B
Ruby

# frozen_string_literal: true
FactoryBot.define do
factory :pages_deployment, class: 'PagesDeployment' do
project
after(:build) do |deployment, _evaluator|
deployment.file = fixture_file_upload(
Rails.root.join("spec/fixtures/pages.zip")
)
end
end
end