#!/usr/bin/env perl
use strict;
use Test::More tests => 5;
# setup library path
use FindBin qw($Bin);
use lib "$Bin/lib";
# make sure testapp works
use ok 'TestApp';
# a live test against TestApp, the test application
my $mech = Test::WWW::Mechanize::Catalyst->new;
$mech->get_ok('http://localhost/', 'get main page');
$mech->content_like(qr/it works/i, 'see if it has our text');
$mech->get_ok('http://localhost/pdf_test/', 'pdf test');
$mech->get_ok('http://localhost/pdf_another/', 'pdf test2');