X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fstorage%2Fdeploy.t;h=78e2c8c7a5b3e87103ecbf25b001c4effe08852b;hb=1759f82f9191bd4ec6ad743d066082242ddbce39;hp=233da2c66d816571282e022fa96c12029a33fcab;hpb=d87929a4221da691151ac8849a658a5d363d88f7;p=dbsrgits%2FDBIx-Class.git diff --git a/t/storage/deploy.t b/t/storage/deploy.t index 233da2c..78e2c8c 100644 --- a/t/storage/deploy.t +++ b/t/storage/deploy.t @@ -3,6 +3,7 @@ use warnings; use Test::More; use Test::Exception; +use Path::Class qw/dir/; use lib qw(t/lib); use DBICTest; @@ -14,8 +15,13 @@ BEGIN { unless DBIx::Class::Optional::Dependencies->req_ok_for ('deploy') } -use File::Spec; -use Path::Class qw/dir/; +# this is how maint/gen_schema did it (connect() to force a storage +# instance, but no conninfo) +# there ought to be more code like this in the wild +like( + DBICTest::Schema->connect->deployment_statements('SQLite'), + qr/\bCREATE TABLE\b/i +); lives_ok( sub { my $parse_schema = DBICTest->init_schema(no_deploy => 1);