3 use lib 'ex'; # Where BeerDB should live
4 BEGIN { if (eval { require BeerDB }) {
6 } else { Test::More->import(skip_all =>"SQLite not working or BeerDB module could not be loaded: $@") }
8 use Maypole::CLI qw(BeerDB);
9 use Maypole::Constants;
10 $ENV{MAYPOLE_TEMPLATES} = "t/templates";
12 isa_ok( (bless {},"BeerDB") , "Maypole");
14 like(BeerDB->call_url("http://localhost/beerdb/"), qr/frontpage/, "Got the front page");
15 like(BeerDB->call_url("http://localhost/beerdb/beer/list"), qr/Organic Best/, "Found a beer in the list");