diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2013-12-02 00:13:44 -0700 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2013-12-02 00:16:54 -0700 |
| commit | 8d3301a23f54fa6ee062dea251639d3c4fa92cb8 (patch) | |
| tree | ce0968734b5a5f4dec38ee0e228ab85713920195 /test | |
| parent | f68984ed5aecdf020e65980868772ab5f167e342 (diff) | |
resolves #819 match URL macro after entity; credit to @jmbruel
Diffstat (limited to 'test')
| -rw-r--r-- | test/links_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/links_test.rb b/test/links_test.rb index 39f08024..4a47aef9 100644 --- a/test/links_test.rb +++ b/test/links_test.rb @@ -50,6 +50,11 @@ context 'Links' do assert_xpath '//a[@href="http://asciidoc.org"][text()="AsciiDoc"]', render_string(')http://asciidoc.org[AsciiDoc] project page.'), 1 end + test 'qualified url following smart apostrophe' do + output = render_embedded_string("l’http://www.irit.fr[IRIT]") + assert_match(/l’<a href=/, output) + end + test 'qualified url using invalid link macro should not create link' do assert_xpath '//a', render_string('link:http://asciidoc.org is the project page for AsciiDoc.'), 0 end |
