Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models/ci/stage_spec.rb')
-rw-r--r--spec/models/ci/stage_spec.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/models/ci/stage_spec.rb b/spec/models/ci/stage_spec.rb
index f6cc61b3e9e..a00db1d2bfc 100644
--- a/spec/models/ci/stage_spec.rb
+++ b/spec/models/ci/stage_spec.rb
@@ -89,9 +89,9 @@ describe Ci::Stage, :models do
end
describe '#index' do
- context 'when stage has been imported and does not have priority index set' do
+ context 'when stage has been imported and does not have position index set' do
before do
- stage.update_column(:priority, nil)
+ stage.update_column(:position, nil)
end
context 'when stage has statuses' do
@@ -100,21 +100,21 @@ describe Ci::Stage, :models do
end
it 'recalculates index before updating status' do
- expect(stage.reload.priority).to be_nil
+ expect(stage.reload.position).to be_nil
stage.update_status
- expect(stage.reload.priority).to eq 10
+ expect(stage.reload.position).to eq 10
end
end
context 'when stage does not have statuses' do
it 'fallbacks to zero' do
- expect(stage.reload.priority).to be_nil
+ expect(stage.reload.position).to be_nil
stage.update_status
- expect(stage.reload.priority).to eq 0
+ expect(stage.reload.position).to eq 0
end
end
end