Restore ability to handle underdefined root (t/prefetch/incomplete.t)
[dbsrgits/DBIx-Class.git] / t / 26dumper.t
index 0cda954..ade5031 100644 (file)
@@ -1,23 +1,14 @@
 use strict;
+use warnings;
 use Test::More;
-use IO::File;
 
 use Data::Dumper;
 $Data::Dumper::Sortkeys = 1;
 
 use lib qw(t/lib);
-
-BEGIN {
-    eval "use DBD::SQLite";
-    plan $ENV{DATA_DUMPER_TEST}
-        ? ( tests => 2 )
-        : ( skip_all => 'Set $ENV{DATA_DUMPER_TEST} to run this test' );
-}
-
-
 use_ok('DBICTest');
 
-my $schema = DBICTest::init_schema();
+my $schema = DBICTest->init_schema();
 my $rs = $schema->resultset('CD')->search({
   'artist.name' => 'We Are Goth',
   'liner_notes.notes' => 'Kill Yourself!',
@@ -36,4 +27,4 @@ $rs = $schema->resultset('CD')->search({
 
 cmp_ok( $rs->count(), '==', 1, "Single record in after death with dumper");
 
-1;
+done_testing;