diff options
author | Kamil Trzciński <ayufan@ayufan.eu> | 2017-05-04 08:56:03 +0000 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2017-05-04 08:56:03 +0000 |
commit | 68c12e15cc236548918f91393ebef3c06c124814 (patch) | |
tree | 54a257b149691e7fedf6c8b3bcd327d6489ba632 /spec/models/commit_spec.rb | |
parent | eddeecf65de0c37b495e5e857f2dd3a5f0b3ca9d (diff) | |
parent | 0a29bde4a1c2c77c49c3fa28ca3f059ba3d3b7d5 (diff) | |
download | gitlab-ce-68c12e15cc236548918f91393ebef3c06c124814.tar.gz |
Merge branch 'always-show-latest-pipeline-in-commit-box' into 'master'
Always show latest pipeline info in commit box
Closes #31378
See merge request !11038
Diffstat (limited to 'spec/models/commit_spec.rb')
-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 |