Welcome to mirror list, hosted at ThFree Co, Russian Federation.

pages_deployments.rb « factories « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f57852a8f94b04784a35f6a64cbcd66d40dd9693 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# 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