implemented _collapse_result and _merge_result
[dbsrgits/DBIx-Class.git] / t / storage / error.t
1 use strict;
2 use warnings;
3
4 use Test::More;
5 use Test::Warn;
6 use Test::Exception;
7
8 use lib qw(t/lib);
9 use_ok( 'DBICTest' );
10 use_ok( 'DBICTest::Schema' );
11
12 my $schema = DBICTest->init_schema;
13
14 warnings_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' );
19
20 done_testing;