summaryrefslogtreecommitdiff
path: root/spec/views/shared/_label_row.html.haml.rb
diff options
context:
space:
mode:
authorAlex Groleau <agroleau@gitlab.com>2019-08-27 12:41:39 -0400
committerAlex Groleau <agroleau@gitlab.com>2019-08-27 12:41:39 -0400
commitaa01f092829facd1044ad02f334422b7dbdc8b0e (patch)
treea754bf2497820432df7da0f2108bb7527a8dd7b8 /spec/views/shared/_label_row.html.haml.rb
parenta1d9c9994a9a4d79b824c3fd9322688303ac8b03 (diff)
parent6b10779053ff4233c7a64c5ab57754fce63f6710 (diff)
downloadgitlab-ce-runner-metrics-extractor.tar.gz
Merge branch 'master' of gitlab_gitlab:gitlab-org/gitlab-cerunner-metrics-extractor
Diffstat (limited to 'spec/views/shared/_label_row.html.haml.rb')
-rw-r--r--spec/views/shared/_label_row.html.haml.rb32
1 files changed, 0 insertions, 32 deletions
diff --git a/spec/views/shared/_label_row.html.haml.rb b/spec/views/shared/_label_row.html.haml.rb
deleted file mode 100644
index a58d5efc1e3..00000000000
--- a/spec/views/shared/_label_row.html.haml.rb
+++ /dev/null
@@ -1,32 +0,0 @@
-require 'spec_helper'
-
-describe 'shared/_label_row.html.haml' do
- label_types = {
- 'project label': :label,
- 'group label': :group_label
- }
-
- label_types.each do |label_type, label_factory|
- let!(:label) { create(label_factory) }
-
- context "for a #{label_type}" do
- it 'has a non-linked label title' do
- render 'shared/label_row', label: label
-
- expect(rendered).not_to have_css('a', text: label.title)
- end
-
- it "has Issues link for #{label_type}" do
- render 'shared/label_row', label: label
-
- expect(rendered).to have_css('a', text: 'Issues')
- end
-
- it "has Merge request link for #{label_type}" do
- render 'shared/label_row', label: label
-
- expect(rendered).to have_css('a', text: 'Merge requests')
- end
- end
- end
-end