X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=t%2F01basics.t;h=e40fa85f488725b000c26b80428cc70012c51779;hb=ea4ae8a93a09e21354465c485471e5f10582b784;hp=3a77f02cff97cff1d252118f91fcd9203f71c46d;hpb=58417aa5f41b42076f991a81b403633bfcb94f39;p=maypole.git diff --git a/t/01basics.t b/t/01basics.t index 3a77f02..e40fa85 100644 --- a/t/01basics.t +++ b/t/01basics.t @@ -1,4 +1,4 @@ -# vim:ft=perl +#!/usr/bin/perl -w use Test::More; use lib 'ex'; # Where BeerDB should live BEGIN { @@ -7,7 +7,7 @@ BEGIN { "SQLite not working or BeerDB module could not be loaded: $@" ) if $@; - plan tests => 15; + plan tests => 18; } use Maypole::CLI qw(BeerDB); use Maypole::Constants; @@ -42,3 +42,7 @@ is($classdata{list_columns}, 'score name price style brewery url', 'classdata.list_columns'); is ($classdata{related_accessors},'pubs','classdata.related_accessors'); +# test if successfully loaded customised model class +can_ok(BeerDB::Beer => 'fooey'); # defined in BeerDB::Beer +can_ok(BeerDB::Beer => 'floob'); # defined in BeerDB::Base +is_deeply( [@BeerDB::Beer::ISA], [qw/Maypole::Model::CDBI Class::DBI::SQLite BeerDB::Base/] );