spec/span_spec.rb in maruku-0.7.1 vs spec/span_spec.rb in maruku-0.7.2

- old
+ new

@@ -160,10 +160,15 @@ ["[a](/url)", [md_im_link(['a'],'/url')], 'Funny chars in url'], ["[a](#url)", [md_im_link(['a'],'#url')]], ["[a](</script?foo=1&bar=2>)", [md_im_link(['a'],'/script?foo=1&bar=2')]], + # Links to URLs that contain closing parentheses. #128 + ['[a](url())', [md_im_link(['a'],'url()')], 'Link with parentheses 1', true], # PENDING + ['[a](url\(\))', [md_im_link(['a'],'url()')], 'Link with parentheses 2', true], # PENDING + ['[a](url()foo)', [md_im_link(['a'],'url()foo')], 'Link with parentheses 3', true], # PENDING + ['[a](url(foo))', [md_im_link(['a'],'url(foo)')], 'Link with parentheses 4', true], # PENDING # Images ["\\![a](url)", ['!', md_im_link(['a'],'url') ], 'Escaping images'], ["![a](url)", [md_im_image(['a'],'url')], 'Image no title'], @@ -184,9 +189,11 @@ ["![a][\timref\t]", [md_image(['a'],"\timref\t")], 'Image with ref'], ['<http://example.com/?foo=1&bar=2>', [md_url('http://example.com/?foo=1&bar=2')], 'Immediate link'], + ['<https://example.com/?foo=1&bar=2>', + [md_url('https://example.com/?foo=1&bar=2')], 'Immediate link https'], ['a<http://example.com/?foo=1&bar=2>b', ['a',md_url('http://example.com/?foo=1&bar=2'),'b'] ], ['<andrea@censi.org>', [md_email('andrea@censi.org')], 'Email address'], ['<mailto:andrea@censi.org>'],