summaryrefslogtreecommitdiff
path: root/spec/lib/banzai/filter/table_of_contents_filter_spec.rb
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2016-11-29 13:07:38 -0600
committerMike Greiling <mike@pixelcog.com>2016-11-30 15:28:11 -0600
commit131a04d7962b01daa58b8e5efe3f1359a3e73fe1 (patch)
treec08cef8bce50b182a750fb9453c8585ccdcad686 /spec/lib/banzai/filter/table_of_contents_filter_spec.rb
parent19f174bc68e0dc17e0298d8903bc855868334776 (diff)
downloadgitlab-ce-131a04d7962b01daa58b8e5efe3f1359a3e73fe1.tar.gz
remove underscore from user-content id namespace22781-user-generated-permalinks
Diffstat (limited to 'spec/lib/banzai/filter/table_of_contents_filter_spec.rb')
-rw-r--r--spec/lib/banzai/filter/table_of_contents_filter_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/lib/banzai/filter/table_of_contents_filter_spec.rb b/spec/lib/banzai/filter/table_of_contents_filter_spec.rb
index e551a7d0ca5..70b31f3a880 100644
--- a/spec/lib/banzai/filter/table_of_contents_filter_spec.rb
+++ b/spec/lib/banzai/filter/table_of_contents_filter_spec.rb
@@ -22,7 +22,7 @@ describe Banzai::Filter::TableOfContentsFilter, lib: true do
html = header(i, "Header #{i}")
doc = filter(html)
- expect(doc.css("h#{i} a").first.attr('id')).to eq "user-content_header-#{i}"
+ expect(doc.css("h#{i} a").first.attr('id')).to eq "user-content-header-#{i}"
end
end
@@ -34,7 +34,7 @@ describe Banzai::Filter::TableOfContentsFilter, lib: true do
it 'has a namespaced id' do
doc = filter(header(1, 'Header'))
- expect(doc.css('h1 a').first.attr('id')).to eq 'user-content_header'
+ expect(doc.css('h1 a').first.attr('id')).to eq 'user-content-header'
end
it 'links to the non-namespaced id' do
@@ -67,7 +67,7 @@ describe Banzai::Filter::TableOfContentsFilter, lib: true do
it 'supports Unicode' do
doc = filter(header(1, '한글'))
- expect(doc.css('h1 a').first.attr('id')).to eq 'user-content_한글'
+ expect(doc.css('h1 a').first.attr('id')).to eq 'user-content-한글'
expect(doc.css('h1 a').first.attr('href')).to eq '#한글'
end
end