5 use Test::More qw(no_plan);
9 BEGIN { use_ok 'MTITest'; }
11 dies_ok { MTITest->source('Foo')->view_definition }
12 "Can't generate view def without connected schema";
14 my $schema = MTITest->connect('dbi:SQLite::memory:');
16 my $dir = "t/sql"; # tempdir(CLEANUP => 0);
18 $schema->create_ddl_dir([ 'PostgreSQL' ], 0.1, $dir);
20 #diag DwarnS $schema->source($_)->view_definition for qw(Foo Bar);
21 #diag DwarnS $schema->source($_) for qw(Foo Bar);