diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-06-01 11:55:18 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-06-01 11:55:18 +0200 |
commit | c00d72b6f33d50b1c5cd6948d54b3addf11f9104 (patch) | |
tree | 6ce71c98e7fa46f2fb85078409936bccea1f31df /spec/models | |
parent | 5c2ce44baf5205c038759c4779a74e3381183e8a (diff) | |
download | gitlab-ce-c00d72b6f33d50b1c5cd6948d54b3addf11f9104.tar.gz |
Rename pipeline methods related to legacy stages
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/ci/pipeline_spec.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/spec/models/ci/pipeline_spec.rb b/spec/models/ci/pipeline_spec.rb index 3a1fe666ff0..46dfa90218d 100644 --- a/spec/models/ci/pipeline_spec.rb +++ b/spec/models/ci/pipeline_spec.rb @@ -213,8 +213,8 @@ describe Ci::Pipeline, models: true do end end - describe '#stages' do - subject { pipeline.stages } + describe '#legacy_stages' do + subject { pipeline.legacy_stages } context 'stages list' do it 'returns ordered list of stages' do @@ -263,7 +263,7 @@ describe Ci::Pipeline, models: true do end it 'populates stage with correct number of warnings' do - deploy_stage = pipeline.stages.third + deploy_stage = pipeline.legacy_stages.third expect(deploy_stage).not_to receive(:statuses) expect(deploy_stage).to have_warnings @@ -277,15 +277,15 @@ describe Ci::Pipeline, models: true do end end - describe '#stages_name' do + describe '#stages_names' do it 'returns a valid names of stages' do - expect(pipeline.stages_name).to eq(%w(build test deploy)) + expect(pipeline.stages_names).to eq(%w(build test deploy)) end end end - describe '#stage' do - subject { pipeline.stage('test') } + describe '#legacy_stage' do + subject { pipeline.legacy_stage('test') } context 'with status in stage' do before do |