Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-05-17 02:44:54 +0300
committerDouwe Maan <douwe@selenight.nl>2017-05-17 18:57:40 +0300
commitc5a13781fad254e1984cf03f5487350e60f665e5 (patch)
tree802a0b15f6f0e5f6573200a3666366658e14159f /spec/views
parent67312fceaa69abb2bc88aa62601625e9f6a62270 (diff)
Use same last commit widget on project homepage and tree view
Diffstat (limited to 'spec/views')
-rw-r--r--spec/views/projects/_last_commit.html.haml_spec.rb22
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