#!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' );
}
