diff options
author | Sean McGivern <sean@gitlab.com> | 2019-07-30 13:29:17 +0100 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2019-08-01 11:07:27 +0100 |
commit | 4d90aa83a0d718fb3f412e98f64963b623887004 (patch) | |
tree | 78dec9d2562d74ad957aa16629d757fe824bfd45 /spec/views | |
parent | c4a8f45f7d5f6873f912004e77af1da2f96fd831 (diff) | |
download | gitlab-ce-4d90aa83a0d718fb3f412e98f64963b623887004.tar.gz |
Fix labels issuable link specs
Diffstat (limited to 'spec/views')
-rw-r--r-- | spec/views/shared/_label_row.html.haml_spec.rb | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/spec/views/shared/_label_row.html.haml_spec.rb b/spec/views/shared/_label_row.html.haml_spec.rb index a58d5efc1e3..4cce13aa37c 100644 --- a/spec/views/shared/_label_row.html.haml_spec.rb +++ b/spec/views/shared/_label_row.html.haml_spec.rb @@ -7,9 +7,20 @@ describe 'shared/_label_row.html.haml' do } label_types.each do |label_type, label_factory| - let!(:label) { create(label_factory) } + let!(:label) do + label_record = create(label_factory) + label_record.present(issuable_subject: label_record.subject) + end context "for a #{label_type}" do + before do + if label.project_label? + @project = label.project + else + @group = label.group + end + end + it 'has a non-linked label title' do render 'shared/label_row', label: label |