Browse files

don't run template test if target engine isn't installed

  • Loading branch information...
1 parent fabd864 commit 55974a695248159d7e238cadca221f28410a4421 @typester committed Nov 5, 2010
Showing with 6 additions and 0 deletions.
  1. +3 −0 t/view_mt.t
  2. +3 −0 t/view_tt.t
View
3 t/view_mt.t
@@ -1,6 +1,9 @@
use Test::Base;
use FindBin;
+eval { require Text::MicroTemplate::Extended; };
+plan skip_all => 'this test required Text::MicroTemplate::Extended' if $@;
+
{
package TestApp;
use Ark;
View
3 t/view_tt.t
@@ -1,6 +1,9 @@
use Test::Base;
use FindBin;
+eval { require Template; };
+plan skip_all => 'this test required Template-Toolkit' if $@;
+
{
package TestApp;
use Ark;

0 comments on commit 55974a6

Please sign in to comment.