Merge 'filter_column' into 'trunk'
[dbsrgits/DBIx-Class.git] / t / storage / error.t
CommitLineData
a4b2f17b 1use strict;
a4b2f17b 2use warnings;
3
56166f36 4use Test::More;
5use Test::Warn;
6use Test::Exception;
a4b2f17b 7
8use lib qw(t/lib);
a4b2f17b 9use_ok( 'DBICTest' );
a4b2f17b 10use_ok( 'DBICTest::Schema' );
56166f36 11
e60dc79f 12my $schema = DBICTest->init_schema;
a4b2f17b 13
56166f36 14warnings_are ( sub {
15 throws_ok (sub {
16 $schema->resultset('CD')->create({ title => 'vacation in antarctica' });
17 }, qr/NULL/); # as opposed to some other error
18}, [], 'No warnings besides exception' );
a4b2f17b 19
56166f36 20done_testing;