test/devcenter-parser_test.rb in devcenter-parser-1.2.0 vs test/devcenter-parser_test.rb in devcenter-parser-1.2.1

- old
+ new

@@ -191,11 +191,11 @@ assert_maruku_result md, html assert_github_result md, html end end - it 'does not alter relative links with initial slashes nor absolute links' do - ['http://foo.com', 'https://foo.com', '/foo', '/foo/bar', '/foo#bar', '/123', 'mailto:foo@foobar.com'].each do |href| + it 'does not alter relative links with initial slashes nor absolute links nor anchor links to the same doc' do + ['http://foo.com', 'https://foo.com', '/foo', '/foo/bar', '/foo#bar', '#foo', '/123', 'mailto:foo@foobar.com'].each do |href| md = "[link](#{href})" html = "<p><a href=\"#{href}\">link</a></p>" assert_maruku_result md, html assert_github_result md, html end \ No newline at end of file