spec/wikilink/converter/namespace_spec.rb in wikilink-converter-0.2.3 vs spec/wikilink/converter/namespace_spec.rb in wikilink-converter-0.2.4

- old
+ new

@@ -62,17 +62,23 @@ to('<a href="Home">Name</a>') } it { should convert(path: 'foo/bar', name: 'Header 1'). to('<a href="foo/bar">Header 1</a>') } + it { should convert(path: '../bar', name: 'Header 1'). + to('<a href="../bar">Header 1</a>') + } it_behaves_like 'converter that keeps query fragment only path untouched' end context 'given option :prefix "/wiki/"' do let(:converter) { self.class.describes.new prefix: '/wiki/' } describe '#run' do subject { converter.method(:run) } it_behaves_like 'converter that keeps query fragment only path untouched' + it { should convert(path: '../blog', name: 'Header 1'). + to('<a href="/blog">Header 1</a>') + } end end context 'given option :suffix "/index.html"' do let(:converter) { self.class.describes.new suffix: '/index.html' }