Skip to content

Commit

Permalink
test for new warning
Browse files Browse the repository at this point in the history
  • Loading branch information
plicease committed Apr 25, 2020
1 parent 03c4b6e commit 794ebf7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions t/new.t
Expand Up @@ -67,4 +67,8 @@ like warning { Pod::Markdown->new(unknown_arg => 1); },
like warning { Pod::Markdown->new(encoding => 'oops'); },
qr/encoding/, 'method that is not a rw attribute throws a warning';

like warning { Pod::Markdown->new(local_module_url_prefix => '', escape_url => 0) },
qr/turning escape_url with an empty local_module_url_prefix is not recommended as relative URLs could be confused for IPv6 addresses/,
'use empty url prefix and do not escape url';

done_testing;

0 comments on commit 794ebf7

Please sign in to comment.