diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2017-05-03 01:40:20 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2017-05-03 01:40:49 +0800 |
commit | 0a29bde4a1c2c77c49c3fa28ca3f059ba3d3b7d5 (patch) | |
tree | 6b946e5c31f67968f6bb4b8e27bf84948a81bc5f /spec | |
parent | e69a7b95df4aea964878086157487379705c9a8c (diff) | |
download | gitlab-ce-0a29bde4a1c2c77c49c3fa28ca3f059ba3d3b7d5.tar.gz |
Rename latest_pipeline to last_pipelinealways-show-latest-pipeline-in-commit-box
As it might be confusing that it's not the same as
Pipeline#latest
Feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/11038#note_28677090
Diffstat (limited to 'spec')
-rw-r--r-- | spec/models/commit_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/models/commit_spec.rb b/spec/models/commit_spec.rb index ce31c8ed94c..08b2169fea7 100644 --- a/spec/models/commit_spec.rb +++ b/spec/models/commit_spec.rb @@ -212,7 +212,7 @@ eos end end - describe '#latest_pipeline' do + describe '#last_pipeline' do let!(:first_pipeline) do create(:ci_empty_pipeline, project: project, @@ -226,8 +226,8 @@ eos status: 'success') end - it 'returns latest pipeline' do - expect(commit.latest_pipeline).to eq second_pipeline + it 'returns last pipeline' do + expect(commit.last_pipeline).to eq second_pipeline end end |