X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=lib%2FMaypole%2FCLI.pm;h=8b7107b7b164a33a421cff6963896fb98dacc35f;hb=9497b573512cd3348e5cdebb2cc07f77f3dc06b4;hp=b40dc0f1d1b2f9db5a68878c7c6ec4538cddc71e;hpb=fb48746a79e660e7f5df5a22269ca9e22519eaa5;p=maypole.git diff --git a/lib/Maypole/CLI.pm b/lib/Maypole/CLI.pm index b40dc0f..8b7107b 100644 --- a/lib/Maypole/CLI.pm +++ b/lib/Maypole/CLI.pm @@ -83,16 +83,17 @@ For instance, a test script could look like this: use Test::More tests => 5; use Maypole::CLI qw(BeerDB); + use Maypole::Constants; $ENV{MAYPOLE_TEMPLATES} = "t/templates"; # Hack because isa_ok only supports object isa not class isa isa_ok( (bless {},"BeerDB") , "Maypole"); @ARGV = ("http://localhost/beerdb/"); - is(BeerDB->handler, 200, "OK"); + is(BeerDB->handler, OK, "OK"); like($Maypole::CLI::buffer, qr/frontpage/, "Got the front page"); @ARGV = ("http://localhost/beerdb/beer/list"); - is(BeerDB->handler, 200, "OK"); + is(BeerDB->handler, OK, "OK"); like($Maypole::CLI::buffer, qr/Organic Best/, "Found a beer in the list");