Update Firebird ODBC driver download URL
[dbsrgits/DBIx-Class-Schema-Loader.git] / t / 30_03no_comment_table.t
CommitLineData
5c06aa08 1use strict;
a79e1189 2use warnings;
5c06aa08 3use Test::More;
4use Test::Exception;
5use Test::Warn;
a79e1189 6use DBIx::Class::Schema::Loader::Utils 'slurp_file';
5c06aa08 7use File::Path;
a79e1189 8use lib qw(t/lib);
5c06aa08 9use make_dbictest_db;
10use dbixcsl_test_dir qw/$tdir/;
11
12my $dump_path = "$tdir/dump";
13
14{
15 package DBICTest::Schema::1;
16 use base qw/ DBIx::Class::Schema::Loader /;
17 __PACKAGE__->loader_options(
18 dump_directory => $dump_path,
a47e6e74 19 quiet => 1,
5c06aa08 20 );
21}
22
23DBICTest::Schema::1->connect($make_dbictest_db::dsn);
24
25plan tests => 1;
26
a79e1189 27my $foo = slurp_file("$dump_path/DBICTest/Schema/1/Result/Foo.pm");
28my $bar = slurp_file("$dump_path/DBICTest/Schema/1/Result/Bar.pm");
5c06aa08 29
ea998e8e 30like($foo, qr/Result::Foo\n/, 'No error from lack of comment tables');
5c06aa08 31
32END { rmtree($dump_path, 1, 1); }