New, failing SQLT deployment order test.
[dbsrgits/DBIx-Class-ResultSource-MultipleTableInheritance.git] / t / 02view_def.t
index 19cfc59..4b5d2c9 100644 (file)
@@ -23,6 +23,7 @@ dies_ok { LoadTest->source('Foo')->view_definition }
 "Can't generate view def without connected schema";
 
 my $schema = LoadTest->connect( $dsn, $user, $pass );
+$schema->storage->ensure_connected;
 
 my $dir = "t/sql";    # tempdir(CLEANUP => 0);
 
@@ -33,6 +34,12 @@ lives_ok {
 }
 "It's also OK to deploy the schema";
 
+isa_ok(
+    $schema->source('Bar'),
+    'DBIx::Class::ResultSource::View',
+    "My MTI class also"
+);
+
 my $sqlt_object = $schema->{sqlt};
 
 is_deeply(