diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-04-19 09:26:17 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-04-24 11:07:37 +0200 |
commit | dc89c1842a6817d75fc05f0ae8a1ffd2a00869c7 (patch) | |
tree | f978e4ec415868f60a4082f101ea63b27dc464bb /spec/models/ci | |
parent | 6a2f8a9afb176600133939f61ccad587c9da7879 (diff) | |
download | gitlab-ce-dc89c1842a6817d75fc05f0ae8a1ffd2a00869c7.tar.gz |
Reorder before block contents in stage entity specs
Diffstat (limited to 'spec/models/ci')
-rw-r--r-- | spec/models/ci/stage_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/models/ci/stage_spec.rb b/spec/models/ci/stage_spec.rb index 1e08b59c380..ae5ab6fe2ab 100644 --- a/spec/models/ci/stage_spec.rb +++ b/spec/models/ci/stage_spec.rb @@ -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 |