Check truth of preserve_case not definedness
[dbsrgits/DBIx-Class-Schema-Loader.git] / t / 30_01comments.t
index c159f1c..b00d42b 100644 (file)
@@ -1,10 +1,11 @@
 use strict;
+use warnings;
 use Test::More;
 use Test::Exception;
 use Test::Warn;
-use lib qw(t/lib);
-use File::Slurp qw(slurp);
+use DBIx::Class::Schema::Loader::Utils 'slurp_file';
 use File::Path;
+use lib qw(t/lib);
 use make_dbictest_db_comments;
 use dbixcsl_test_dir qw/$tdir/;
 
@@ -15,6 +16,7 @@ my $dump_path = "$tdir/dump";
     use base qw/ DBIx::Class::Schema::Loader /;
     __PACKAGE__->loader_options(
         dump_directory => $dump_path,
+        quiet => 1,
     );
 }
 
@@ -22,8 +24,8 @@ DBICTest::Schema::1->connect($make_dbictest_db_comments::dsn);
 
 plan tests => 4;
 
-my $foo = slurp("$dump_path/DBICTest/Schema/1/Result/Foo.pm");
-my $bar = slurp("$dump_path/DBICTest/Schema/1/Result/Bar.pm");
+my $foo = slurp_file("$dump_path/DBICTest/Schema/1/Result/Foo.pm");
+my $bar = slurp_file("$dump_path/DBICTest/Schema/1/Result/Bar.pm");
 
 like($foo, qr/Result::Foo - a short comment/, 'Short table comment inline');
 like($bar, qr/Result::Bar\n\n=head1 DESCRIPTION\n\na (very ){80}long comment/,