X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F30_01comments.t;h=b00d42b3ad1d55f3cdbdcc511ae8a25536073aaf;hb=a79e11896d6d1d70842c432cde8830ded06568ce;hp=e7edc251f6b9ad6d05f44b86ac375e0418bd5153;hpb=2db2c8982208e6d6e74bd673158277cdabd5c2a1;p=dbsrgits%2FDBIx-Class-Schema-Loader.git diff --git a/t/30_01comments.t b/t/30_01comments.t index e7edc25..b00d42b 100644 --- a/t/30_01comments.t +++ b/t/30_01comments.t @@ -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/; @@ -23,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/,