misc minor fixes for C::P::Cache
[catagits/Catalyst-Plugin-Cache.git] / t / live_app.t
CommitLineData
33002c69 1#!/usr/bin/perl
2
3use strict;
4use warnings;
5
6use Test::More;
7
8BEGIN {
9 eval { require Test::WWW::Mechanize::Catalyst }
10 or plan skip_all =>
11 "Test::WWW::Mechanize::Catalyst is required for this test";
12
13 plan tests => 5;
14}
15
16use lib "t/lib";
17use Test::WWW::Mechanize::Catalyst "CacheTestApp";
18
19my $ua = Test::WWW::Mechanize::Catalyst->new;
20
d6861a7f 21$ua->get_ok("http://localhost/bar");
33002c69 22$ua->content_is("not found");
23
d6861a7f 24$ua->get_ok("http://localhost//foo");
33002c69 25
d6861a7f 26$ua->get_ok("http://localhost/bar");
33002c69 27$ua->content_is("Foo");