Tidy tests
[dbsrgits/DBIx-Class-ResultSource-MultipleTableInheritance.git] / t / 02view_def.t
index a9a1345..7dffd5c 100644 (file)
@@ -8,15 +8,16 @@ use Devel::Dwarn;
 
 BEGIN {
     use_ok 'MTITest';
-    $ENV{DBIC_TRACE} = 1;
+    $ENV{DBIC_TRACE} = 0;
 }
 
 dies_ok { MTITest->source('Foo')->view_definition }
 "Can't generate view def without connected schema";
 
-my $schema = MTITest->connect( 'dbi:Pg:dbname=mti', 'postgres', '' );
+my $schema = MTITest->connect( 'dbi:Pg:dbname=test', 'postgres', '' );
 
 my $dir = "t/sql";    # tempdir(CLEANUP => 0);
 
+#$schema->storage->dbh->{Warn} = 0;
 $schema->create_ddl_dir( ['PostgreSQL'], 0.1, $dir );
-$schema->deploy( { add_drop_table => 1, add_drop_view => 1 } );
+$schema->deploy( { add_drop_table => 1, add_drop_view => 1} );