gitlab-org--gitlab-foss/spec/factories/pages_deployments.rb

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