X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F08helper.t;h=066a69dcea450a323ff8aab3cd5953dfbb59e0d1;hb=a4803ca6e4b559c289671a01ea9a978eebea06f1;hp=e7b2a9d0b0f72e10a5ec6081c865000957191d38;hpb=2a969b063ea6ab41d6fde9b56d07a532ee80c3f0;p=catagits%2FCatalyst-Model-DBIC-Schema.git diff --git a/t/08helper.t b/t/08helper.t index e7b2a9d..066a69d 100644 --- a/t/08helper.t +++ b/t/08helper.t @@ -10,7 +10,7 @@ use Catalyst::Helper::Model::DBIC::Schema; use Storable 'dclone'; eval "use Catalyst::Helper"; plan skip_all => 'Catalyst::Helper required for tests' if $@; -plan tests => 40; +plan tests => 41; my $helper = Catalyst::Helper->new; $helper->{base} = $Bin; @@ -26,6 +26,9 @@ my $i; $i = instance(schema_class => 'ASchemaClass'); is $i->old_schema, 1, '->load_classes detected correctly'; +throws_ok { $i = instance(args => [$static, 'DbI:SQLite:myapp.db']) } + qr/case matters/i, "wrong case for 'dbi:' DSN part"; + $i = instance(args => ['traits=Caching']); is_deeply $i->traits, ['Caching'], 'one trait'; is $i->helper->{traits}, "['Caching']", 'one trait as string';