spec/wikilink/converter_spec.rb in wikilink-converter-0.2.2 vs spec/wikilink/converter_spec.rb in wikilink-converter-0.2.3

- old
+ new

@@ -61,9 +61,15 @@ subject.should convert("[[[test]]").to("[[[test]]") end it 'ignores wikilink which path starts with ]' do subject.should convert("[[]test]]").to("[[]test]]") end + it 'unescape &#47; in inner text' do + subject.should convert("[[foo&#47;bar]]").to('<a href="/foo/bar">foo/bar</a>') + end + it 'ignores wikilink which path starts with ]' do + subject.should convert("[[]test]]").to("[[]test]]") + end context 'in namespace topics' do context 'with default handler' do before do converter.namespace('topics', Wikilink::Converter::Namespace::Default)