6 use DBIx::Class::Schema::Loader::Utils 'slurp_file';
10 use make_dbictest_db_bad_comment_tables;
11 use dbixcsl_test_dir qw/$tdir/;
13 my $dump_path = "$tdir/dump";
16 package DBICTest::Schema::1;
17 use base qw/ DBIx::Class::Schema::Loader /;
18 __PACKAGE__->loader_options(
19 dump_directory => $dump_path,
25 DBICTest::Schema::1->connect($make_dbictest_db_bad_comment_tables::dsn);
30 my $foo = try { slurp_file("$dump_path/DBICTest/Schema/1/Result/Foo.pm") };
31 my $bar = try { slurp_file("$dump_path/DBICTest/Schema/1/Result/Bar.pm") };
33 like($foo, qr/Result::Foo\n/, 'No error from invalid comment tables');
35 END { rmtree($dump_path, 1, 1); }