Reorder before block contents in stage entity specs

This commit is contained in:
Grzegorz Bizon 2018-04-19 09:26:17 +02:00
parent 6a2f8a9afb
commit dc89c1842a
1 changed files with 2 additions and 1 deletions

View File

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