whitespace, use base Core, and an idea on backcompat
[dbsrgits/DBIx-Class-Journal.git] / t / 02noautodeploy.t
index 4e40910..7795258 100644 (file)
@@ -7,10 +7,10 @@ use DBICTest;
 use Data::Dumper;
 
 BEGIN {
-    eval "use DBD::SQLite";
+    eval "use DBD::SQLite; use SQL::Translator";
     plan $@
-        ? ( skip_all => 'needs DBD::SQLite for testing' )
-        : ( 'no_plan' );
+        ? ( skip_all => 'needs DBD::SQLite and SQL::Translator for testing' )
+        : ( tests => 8 );
 }
 
 my $schema = DBICTest->init_schema(no_populate => 1, no_deploy => 1);
@@ -21,16 +21,16 @@ isa_ok($schema->_journal_schema->source('CDAuditHistory'), 'DBIx::Class::ResultS
 isa_ok($schema->_journal_schema->source('ArtistAuditLog'), 'DBIx::Class::ResultSource', 'ArtistAuditLog source exists');
 
 my $count = eval { 
-    $schema->_journal_schema->resultset('ArtistAuditHistory')->count;
+    $schema->_journal_schema->resultset('ChangeLog')->count;
 };
 my $e = $@;
 
 is( $count, undef, "no count" );
-like( $e, qr/table.*artist_audit_log/i, "missing table error" );
+like( $e, qr/table.*changelog/, "missing table error" );
 
 $schema->journal_schema_deploy();
 
-$count = eval { $schema->_journal_schema->resultset('ArtistAuditHistory')->count };
+$count = eval { $schema->_journal_schema->resultset('ChangeLog')->count };
 
 is( $@, '', "no error" );
 is( $count, 0, "count is 0" );