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