diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-03-01 17:07:40 -0600 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-03-01 17:07:43 -0600 |
commit | 6fd28ff24472b87802bf88d5306bbfebbf22f7d6 (patch) | |
tree | ee53546c977dd60e85ed9fe0c3f83faff8a91e09 /spec/lib/banzai | |
parent | 981c730fdb3da1ada8d1b44d21e75a11175b3026 (diff) | |
download | gitlab-ce-6fd28ff24472b87802bf88d5306bbfebbf22f7d6.tar.gz |
Use full group name in GFM group reference titledm-group-reference-full-name
Diffstat (limited to 'spec/lib/banzai')
-rw-r--r-- | spec/lib/banzai/filter/user_reference_filter_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/lib/banzai/filter/user_reference_filter_spec.rb b/spec/lib/banzai/filter/user_reference_filter_spec.rb index d5d128c1907..9873774909e 100644 --- a/spec/lib/banzai/filter/user_reference_filter_spec.rb +++ b/spec/lib/banzai/filter/user_reference_filter_spec.rb @@ -123,6 +123,12 @@ describe Banzai::Filter::UserReferenceFilter, lib: true do expect(doc.css('a').first.attr('href')).to eq urls.group_url(group) end + + it 'has the full group name as a title' do + doc = reference_filter("Hey #{reference}") + + expect(doc.css('a').first.attr('title')).to eq group.full_name + end end it 'links with adjacent text' do |