Fix test skipping of http tests
[catagits/Catalyst-Runtime.git] / t / optional_http-server.t
index 5516b66..4b69d80 100644 (file)
@@ -11,10 +11,10 @@ use Test::More;
 plan skip_all => 'set TEST_HTTP to enable this test' unless $ENV{TEST_HTTP};
 eval "use Catalyst::Devel 1.0";
 plan skip_all => 'Catalyst::Devel required' if $@;
+eval "use File::Copy::Recursive";
+plan skip_all => 'File::Copy::Recursive required' if $@;
 plan tests => 1;
 
-use File::Copy::Recursive;
-
 # clean up
 rmtree "$FindBin::Bin/../t/tmp" if -d "$FindBin::Bin/../t/tmp";