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 / in inner text' do
+ subject.should convert("[[foo/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)