diff options
author | ubudzisz <ubudzisz@gmail.com> | 2016-07-11 09:11:20 +0200 |
---|---|---|
committer | ubudzisz <ubudzisz@gmail.com> | 2016-07-18 12:39:24 +0200 |
commit | fda1d011824c24fc38dcac0e2fc795a4515ae2ec (patch) | |
tree | 1f293d0caad0571c262cc4f7f1fd4b0088e4007a /spec/views | |
parent | af1a6f0533854cca76d4b0bcf2059131a1bfd106 (diff) | |
download | gitlab-ce-fda1d011824c24fc38dcac0e2fc795a4515ae2ec.tar.gz |
add git-commit-title-method into pipeline model and modify view
add git-commit-title-method into tests
Diffstat (limited to 'spec/views')
-rw-r--r-- | spec/views/projects/builds/show.html.haml_spec.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/views/projects/builds/show.html.haml_spec.rb b/spec/views/projects/builds/show.html.haml_spec.rb index cd18d19ef5e..7051e084375 100644 --- a/spec/views/projects/builds/show.html.haml_spec.rb +++ b/spec/views/projects/builds/show.html.haml_spec.rb @@ -22,6 +22,10 @@ describe 'projects/builds/show' do it 'does not show retry button' do expect(rendered).not_to have_link('Retry') end + + it 'shows commit title' do + expect(rendered).to have_text(@git_commit_title) + end end context 'when build is not running' do @@ -33,5 +37,10 @@ describe 'projects/builds/show' do it 'shows retry button' do expect(rendered).to have_link('Retry') end + + it 'shows commit title' do + expect(rendered).to have_text(@git_commit_title) + end end + end |