Permalink
Browse files

changed skip logic

  • Loading branch information...
1 parent ff5d590 commit d2c66336873d075dcb365993a2f73d0d2dff4023 @xaicron xaicron committed Feb 11, 2010
Showing with 5 additions and 6 deletions.
  1. +5 −6 xt/dependencies.t
View
@@ -1,8 +1,7 @@
use Test::More;
-eval {
- use Test::Dependencies
- exclude => [qw( Test::Dependencies Template::Semantic )],
- style => 'light';
-};
-plan skip_all => "Test::Dependencies is not installed." if $@;
+plan skip_all => "Test::Dependencies is not installed." unless eval { require Test::Dependencies; 1 };
+Test::Dependencies->import(
+ exclude => [qw( Test::Dependencies Template::Semantic )],
+ style => 'light',
+);
ok_dependencies();

0 comments on commit d2c6633

Please sign in to comment.