diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-05-17 02:44:54 +0300 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-05-17 18:57:40 +0300 |
commit | c5a13781fad254e1984cf03f5487350e60f665e5 (patch) | |
tree | 802a0b15f6f0e5f6573200a3666366658e14159f /spec/views/projects | |
parent | 67312fceaa69abb2bc88aa62601625e9f6a62270 (diff) |
Use same last commit widget on project homepage and tree view
Diffstat (limited to 'spec/views/projects')
-rw-r--r-- | spec/views/projects/_last_commit.html.haml_spec.rb | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/spec/views/projects/_last_commit.html.haml_spec.rb b/spec/views/projects/_last_commit.html.haml_spec.rb deleted file mode 100644 index eea1695b171..00000000000 --- a/spec/views/projects/_last_commit.html.haml_spec.rb +++ /dev/null @@ -1,22 +0,0 @@ -require 'spec_helper' - -describe 'projects/_last_commit', :view do - let(:project) { create(:project, :repository) } - - context 'when there is a pipeline present for the commit' do - context 'when pipeline is blocked' do - let!(:pipeline) do - create(:ci_pipeline, :blocked, project: project, - sha: project.commit.id) - end - - it 'shows correct pipeline badge' do - render 'projects/last_commit', commit: project.commit, - project: project, - ref: :master - - expect(rendered).to have_text "blocked #{project.commit.short_id}" - end - end - end -end |