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
end
end
describe '#detailed_status' do
using RSpec::Parameterized::TableSyntax
......@@ -134,9 +133,9 @@ describe Ci::Stage, :models do
before do
statuses.each do |status|
create(:commit_status, project: stage.project,
pipeline: stage.pipeline,
stage_id: stage.id,
status: status)
pipeline: stage.pipeline,
stage_id: stage.id,
status: status)
stage.update_status
end
......@@ -149,13 +148,13 @@ 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_status
stage.update_status
end
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