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;
use dbixcsl_test_dir qw/$tdir/;
plan tests => 1;
-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\n/, 'No error from lack of comment tables');