pod cleanup, fixed broken pod links, and new Introduction pod
[dbsrgits/DBIx-Class.git] / t / 30dbicplain.t
1 #!/usr/bin/perl
2
3 use strict;
4 use warnings;
5 use Test::More;
6
7 use lib qw(t/lib);
8
9 plan tests => 3;
10
11 my @warnings;
12
13 {
14   local $SIG{__WARN__} = sub { push(@warnings, $_[0]); };
15   require DBICTest::Plain;
16 }
17
18 like($warnings[0], qr/compose_connection deprecated as of 0\.08000/,
19       'deprecation warning emitted ok');
20 cmp_ok(@warnings, '==', 1, 'no unexpected warnings');
21 cmp_ok(DBICTest::Plain->resultset('Test')->count, '>', 0, 'count is valid');