Commit 8a3aa3a6 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Fix Rubocop offenses in pipeline stage specs

parent 1af2274b
...@@ -112,7 +112,6 @@ describe Ci::Stage, :models do ...@@ -112,7 +112,6 @@ describe Ci::Stage, :models do
end end
end end
describe '#detailed_status' do describe '#detailed_status' do
using RSpec::Parameterized::TableSyntax using RSpec::Parameterized::TableSyntax
...@@ -134,9 +133,9 @@ describe Ci::Stage, :models do ...@@ -134,9 +133,9 @@ describe Ci::Stage, :models do
before do before do
statuses.each do |status| statuses.each do |status|
create(:commit_status, project: stage.project, create(:commit_status, project: stage.project,
pipeline: stage.pipeline, pipeline: stage.pipeline,
stage_id: stage.id, stage_id: stage.id,
status: status) status: status)
stage.update_status stage.update_status
end end
...@@ -149,13 +148,13 @@ describe Ci::Stage, :models do ...@@ -149,13 +148,13 @@ describe Ci::Stage, :models do
context 'when stage has warnings' do context 'when stage has warnings' do
before do before do
create(:ci_build, project: stage.project, create(:ci_build, project: stage.project,
pipeline: stage.pipeline, pipeline: stage.pipeline,
stage_id: stage.id, stage_id: stage.id,
status: :failed, status: :failed,
allow_failure: true) allow_failure: true)
stage.update_status stage.update_status
end end
it 'is passed with warnings' do it 'is passed with warnings' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment