Commit dc89c184 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Reorder before block contents in stage entity specs

parent 6a2f8a9a
...@@ -91,8 +91,9 @@ describe Ci::Stage, :models do ...@@ -91,8 +91,9 @@ describe Ci::Stage, :models do
describe '#index' do describe '#index' do
context 'when stage has been imported and does not have index set' do context 'when stage has been imported and does not have index set' do
before do before do
create(:ci_build, :running, stage_id: stage.id, stage_idx: 10)
stage.update_column(:index, nil) stage.update_column(:index, nil)
create(:ci_build, :running, stage_id: stage.id, stage_idx: 10)
end end
it 'recalculates index before updating status' do it 'recalculates index before updating status' 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