generic comments mechanism, MySQL specific support
[dbsrgits/DBIx-Class-Schema-Loader.git] / t / 30_03no_comment_table.t
CommitLineData
5c06aa08 1use strict;
2use Test::More;
3use Test::Exception;
4use Test::Warn;
5use lib qw(t/lib);
6use File::Slurp qw(slurp);
7use File::Path;
8use make_dbictest_db;
9use dbixcsl_test_dir qw/$tdir/;
10
11my $dump_path = "$tdir/dump";
12
13{
14 package DBICTest::Schema::1;
15 use base qw/ DBIx::Class::Schema::Loader /;
16 __PACKAGE__->loader_options(
17 dump_directory => $dump_path,
18 );
19}
20
21DBICTest::Schema::1->connect($make_dbictest_db::dsn);
22
23plan tests => 1;
24
25my $foo = slurp("$dump_path/DBICTest/Schema/1/Result/Foo.pm");
26my $bar = slurp("$dump_path/DBICTest/Schema/1/Result/Bar.pm");
27
28like($foo, qr/Result::Foo\n/, 'No error from no comments');
29
30END { rmtree($dump_path, 1, 1); }