Permalink
Browse files

skipping markdown tests if Text::Markdown is not installed

  • Loading branch information...
1 parent 39d3af1 commit 4e7d4ef77fe1811a6b472c547a1dcee5b3b5f737 @tmueller tmueller committed Jun 6, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 t/app.t
View
@@ -43,8 +43,13 @@ $t->get_ok('/tags/foo.html')->status_is(200)->content_like(qr/foo/);
$t->get_ok('/articles/2010/10/foo.html')->status_is(200);
# Page with Markdown
+SKIP: {
+ skip 'Text::Markdown is required for markdown tests', 3 unless eval { require Text::Markdown; 1; };
+
$t->get_ok('/pages/markdown.html')->status_is(200)
->content_like(qr|<strong>Markdown</strong>|);
+
+};
# Page with HTML
$t->get_ok('/pages/html.html')->status_is(200)

0 comments on commit 4e7d4ef

Please sign in to comment.