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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/factories/ci/stages.rb')
-rw-r--r--spec/factories/ci/stages.rb19
1 files changed, 1 insertions, 18 deletions
diff --git a/spec/factories/ci/stages.rb b/spec/factories/ci/stages.rb
index 4751c04584e..41297b01f92 100644
--- a/spec/factories/ci/stages.rb
+++ b/spec/factories/ci/stages.rb
@@ -1,24 +1,7 @@
# frozen_string_literal: true
FactoryBot.define do
- factory :ci_stage, class: 'Ci::LegacyStage' do
- skip_create
-
- transient do
- name { 'test' }
- status { nil }
- warnings { nil }
- pipeline factory: :ci_empty_pipeline
- end
-
- initialize_with do
- Ci::LegacyStage.new(pipeline, name: name,
- status: status,
- warnings: warnings)
- end
- end
-
- factory :ci_stage_entity, class: 'Ci::Stage' do
+ factory :ci_stage, class: 'Ci::Stage' do
project factory: :project
pipeline factory: :ci_empty_pipeline