diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-06 06:09:36 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-06 06:09:36 +0000 |
commit | 0c4b9cacd575b3e71e41a13f042062b3adcb4caf (patch) | |
tree | fd06e55f276c1fa42327a41860e328b46a8cb8ee /spec/factories | |
parent | 6c005ae9783ad6752e3082d05e1053d20d8da92a (diff) | |
download | gitlab-ce-0c4b9cacd575b3e71e41a13f042062b3adcb4caf.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/factories')
-rw-r--r-- | spec/factories/project_repository_storage_moves.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/factories/project_repository_storage_moves.rb b/spec/factories/project_repository_storage_moves.rb new file mode 100644 index 00000000000..aa8576834eb --- /dev/null +++ b/spec/factories/project_repository_storage_moves.rb @@ -0,0 +1,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 |