skip test if no Type::Tiny
[catagits/Catalyst-Runtime.git] / t / arg_constraints.t
index 8d74aa8..fada01b 100644 (file)
@@ -4,10 +4,12 @@ use HTTP::Request::Common;
 
 BEGIN {
   use Test::More;
-  eval "use Types::Standard; use Type::Utils; use Type::Library; 1;" || do {
-    plan skip_all => "Trouble loading Types::Standard => $@";
+  eval "use Type::Tiny; 1" || do {
+    plan skip_all => "Trouble loading Type::Tiny and friends => $@";
   };
+}
 
+BEGIN {
   package MyApp::Types;
   $INC{'MyApp/Types.pm'} = __FILE__;
 
@@ -362,10 +364,6 @@ SKIP: {
 
 =cut
 
-
-done_testing;
-
-__END__
 {
   # URI testing
   my ($res, $c) = ctx_request '/';
@@ -376,3 +374,8 @@ __END__
   warn $url2;
 }
 
+done_testing;
+
+__END__
+
+