X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F08subreq.t;h=e5be28de925eb2798885cddfad34c02850995c81;hb=ee1e7faf8d6bb43a85f6d6f74b8f0bd7b7e8712a;hp=77b3881ac1f8643800fab84a15bc8cd1b7ba3820;hpb=8cc672a2633d61d4c3250f3079d3d22b76344125;p=catagits%2FCatalyst-Plugin-Static-Simple.git diff --git a/t/08subreq.t b/t/08subreq.t index 77b3881..e5be28d 100644 --- a/t/08subreq.t +++ b/t/08subreq.t @@ -1,23 +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 the SubRequest plugin for these tests", 2; - #} - - # skip this for now, until patched SubRequest is released - skip "Awaiting patched SubRequest release", 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' ); +} +