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

project_repository_storage_moves.rb « factories « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: aa8576834eb0428db537c8635bfbbb4b1bee7163 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

FactoryBot.define do
  factory :project_repository_storage_move, class: 'ProjectRepositoryStorageMove' do
    project

    source_storage_name { 'default' }
    destination_storage_name { 'default' }

    trait :scheduled do
      state { ProjectRepositoryStorageMove.state_machines[:state].states[:scheduled].value }
    end
  end
end