Use Try::Tiny rather than eval
[catagits/Catalyst-Plugin-Authentication.git] / t / live_app.t
index d27d291..af9042c 100644 (file)
@@ -1,9 +1,12 @@
-#!/usr/bin/perl
-
 use strict;
 use warnings;
 
-use Test::More 'no_plan';
+use Test::More;
+
+BEGIN {
+    plan skip_all => "Digest::SHA1 is required for this test" unless eval { require Digest::SHA1 };
+    plan "no_plan";
+}
 
 use lib 't/lib';
 use Catalyst::Test qw/AuthTestApp/;