5 use Test::More qw(no_plan);
14 dies_ok { MTITest->source('Foo')->view_definition }
15 "Can't generate view def without connected schema";
17 my $schema = MTITest->connect( 'dbi:Pg:dbname=test', 'postgres', '' );
19 my $dir = "t/sql"; # tempdir(CLEANUP => 0);
21 #$schema->storage->dbh->{Warn} = 0;
22 $schema->create_ddl_dir( ['PostgreSQL'], 0.1, $dir );
23 $schema->deploy( { add_drop_table => 1, add_drop_view => 1} );