spec/licensee/content_helper_spec.rb in licensee-9.15.3 vs spec/licensee/content_helper_spec.rb in licensee-9.16.0
- old
+ new
@@ -221,14 +221,30 @@
it 'normalizes lists' do
expect(subject.content_normalized).to eql('- foo - bar')
end
end
+ context 'lists with formatting bullets' do
+ let(:content) { "- **(a)** Foo\n * b) Bar" }
+
+ it 'normalizes lists' do
+ expect(subject.content_normalized).to eql('- foo - bar')
+ end
+ end
+
context 'dashes' do
let(:content) { 'Foo-Bar—–baz-buzz' }
it 'normalizes dashes' do
expect(subject.content_normalized).to eql('foo-bar-baz-buzz')
+ end
+ end
+
+ context 'hyphenated across lines' do
+ let(:content) { "cc-\nlicensed" }
+
+ it 'normalized hyphenated across lines' do
+ expect(subject.content_normalized).to eql('cc-licensed')
end
end
context 'quotes' do
let(:content) { "`a` 'b' \"c\" ‘d’ “e”" }