]> git.decadent.org.uk Git - maypole.git/blob - t/01basics.t
renamed tests
[maypole.git] / t / 01basics.t
1 # vim:ft=perl
2 use Test::More;
3 use lib 'ex'; # Where BeerDB should live
4 BEGIN { if (eval { require BeerDB }) { 
5             plan tests => 3;
6         } else { Test::More->import(skip_all =>"SQLite not working or BeerDB module could not be loaded: $@") }
7       }
8 use Maypole::CLI qw(BeerDB);
9 use Maypole::Constants;
10 $ENV{MAYPOLE_TEMPLATES} = "t/templates";
11
12 isa_ok( (bless {},"BeerDB") , "Maypole");
13
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");