summaryrefslogtreecommitdiff
path: root/spec/factories/pages_deployments.rb
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