X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F08subreq.t;h=e5be28de925eb2798885cddfad34c02850995c81;hb=ee1e7faf8d6bb43a85f6d6f74b8f0bd7b7e8712a;hp=911bf5c9e041f958e3222ba3d4262dd1aa91238b;hpb=9d5f0633ec338e78820b2b4a62bdd8b0de17919a;p=catagits%2FCatalyst-Plugin-Static-Simple.git diff --git a/t/08subreq.t b/t/08subreq.t index 911bf5c..e5be28d 100644 --- a/t/08subreq.t +++ b/t/08subreq.t @@ -1,24 +1,24 @@ -#!perl - -use strict; -use warnings; - -use FindBin; -use lib "$FindBin::Bin/lib"; - -use Test::More tests => 2; -use Catalyst::Test 'TestApp'; - -SKIP: -{ - unless ( TestApp->isa('Catalyst::Plugin::SubRequest') ) { - skip "Install Catalyst::Plugin::SubRequest >= 0.15 for these tests", 2; - } - unless ( $Catalyst::Plugin::SubRequest::VERSION >= 0.15 ) { - skip "Need Catalyst::Plugin::SubRequest >= 0.15 for these tests", 2; - } - - ok( my $res = request('http://localhost/subtest'), 'Request' ); - is( $res->content, 'subtest2 ok', 'SubRequest ok' ); -} - +#!perl + +use strict; +use warnings; + +use FindBin; +use lib "$FindBin::Bin/lib"; + +use Test::More tests => 2; +use Catalyst::Test 'TestApp'; + +SKIP: +{ + unless ( TestApp->isa('Catalyst::Plugin::SubRequest') ) { + skip "Install Catalyst::Plugin::SubRequest >= 0.15 for these tests", 2; + } + unless ( $Catalyst::Plugin::SubRequest::VERSION >= 0.15 ) { + skip "Need Catalyst::Plugin::SubRequest >= 0.15 for these tests", 2; + } + + ok( my $res = request('http://localhost/subtest'), 'Request' ); + is( $res->content, 'subtest2 ok', 'SubRequest ok' ); +} +