X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F21misc_fatal.t;h=c50fc4f1d039d6f35107797bcecc00774c74b985;hb=20d44ba70154a47099b1c9d9ffa58af75d55c28c;hp=1b782657cd7511323942c236ceb6727e250ea6ba;hpb=605fcea8ba8b59e384cc32f38dc5a9e2131fe22b;p=dbsrgits%2FDBIx-Class-Schema-Loader.git diff --git a/t/21misc_fatal.t b/t/21misc_fatal.t index 1b78265..c50fc4f 100644 --- a/t/21misc_fatal.t +++ b/t/21misc_fatal.t @@ -1,4 +1,5 @@ use strict; +use warnings; use Test::More; use lib qw(t/lib); use make_dbictest_db; @@ -12,7 +13,7 @@ use make_dbictest_db; package DBICTest::Schema; use base qw/ DBIx::Class::Schema::Loader /; - __PACKAGE__->loader_options( dump_overwrite => 1 ); + __PACKAGE__->loader_options( really_erase_my_files => 1 ); __PACKAGE__->storage_type( '::xyzzy' ); } @@ -21,6 +22,6 @@ plan tests => 1; eval { DBICTest::Schema->connect($make_dbictest_db::dsn) }; like( $@, - qr/Could not load storage_type loader "DBIx::Class::Schema::Loader::xyzzy": /, + qr/Could not load loader_class "DBIx::Class::Schema::Loader::xyzzy": /, 'Bad storage type dies correctly' );