handle the throw_exception bit. Drop DBIx::Class::Exception
[dbsrgits/DBIx-Class-Historic.git] / t / 18inserterror.t
CommitLineData
a4b2f17b 1use Class::C3;
2use strict;
3use Test::More;
4use warnings;
5
6BEGIN {
7 eval "use DBD::SQLite";
8 plan $@
9 ? ( skip_all => 'needs DBD::SQLite for testing' )
10 : ( tests => 3 );
11}
12
13use lib qw(t/lib);
14
15use_ok( 'DBICTest' );
16
17use_ok( 'DBICTest::Schema' );
18
19{
20 my $warnings;
21 local $SIG{__WARN__} = sub { $warnings .= $_[0] };
22 eval { DBICTest::CD->create({ title => 'vacation in antarctica' }) };
23 ok( $warnings !~ /uninitialized value/, "No warning from Storage" );
24}
25