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

14 lines
290 B
Ruby
Raw Normal View History

# 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