X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Foptional_http-server.t;h=4b69d8096e9113b4ee50ed939f4914e6b7778ff5;hb=d4f67841aca20946ee3e6e32609a22d633d961e9;hp=d03a10718e76ba544b317f6efd3da3ee9af4a91d;hpb=a2e038a1e9cbc0f1ea32b7087e6b47efe3af082f;p=catagits%2FCatalyst-Runtime.git diff --git a/t/optional_http-server.t b/t/optional_http-server.t index d03a107..4b69d80 100644 --- a/t/optional_http-server.t +++ b/t/optional_http-server.t @@ -7,9 +7,11 @@ use File::Path; use FindBin; use IO::Socket; use Test::More; -eval "use File::Copy::Recursive"; 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; @@ -20,7 +22,7 @@ rmtree "$FindBin::Bin/../t/tmp" if -d "$FindBin::Bin/../t/tmp"; mkdir "$FindBin::Bin/../t/tmp"; chdir "$FindBin::Bin/../t/tmp"; system "perl -I$FindBin::Bin/../lib $FindBin::Bin/../script/catalyst.pl TestApp"; -chdir "$FindBin::Bin/../.."; +chdir "$FindBin::Bin/.."; File::Copy::Recursive::dircopy( 't/lib', 't/tmp/TestApp/lib' ); # remove TestApp's tests