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/models/ci/stage_spec.rb')
-rw-r--r--spec/models/ci/stage_spec.rb24
1 files changed, 15 insertions, 9 deletions
diff --git a/spec/models/ci/stage_spec.rb b/spec/models/ci/stage_spec.rb
index b392ab4ed11..79e92082ee1 100644
--- a/spec/models/ci/stage_spec.rb
+++ b/spec/models/ci/stage_spec.rb
@@ -223,10 +223,13 @@ RSpec.describe Ci::Stage, :models do
with_them do
before do
statuses.each do |status|
- create(:commit_status, project: stage.project,
- pipeline: stage.pipeline,
- stage_id: stage.id,
- status: status)
+ create(
+ :commit_status,
+ project: stage.project,
+ pipeline: stage.pipeline,
+ stage_id: stage.id,
+ status: status
+ )
stage.update_legacy_status
end
@@ -239,11 +242,14 @@ RSpec.describe Ci::Stage, :models do
context 'when stage has warnings' do
before do
- create(:ci_build, project: stage.project,
- pipeline: stage.pipeline,
- stage_id: stage.id,
- status: :failed,
- allow_failure: true)
+ create(
+ :ci_build,
+ project: stage.project,
+ pipeline: stage.pipeline,
+ stage_id: stage.id,
+ status: :failed,
+ allow_failure: true
+ )
stage.update_legacy_status
end