File: 18inserterror.t

package info (click to toggle)
libdbix-class-perl 0.08010-2
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 2,052 kB
  • ctags: 1,064
  • sloc: perl: 10,536; sql: 225; makefile: 45
file content (25 lines) | stat: -rwxr-xr-x 504 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
use Class::C3;
use strict;
use Test::More;
use warnings;

BEGIN {
    eval "use DBD::SQLite";
    plan $@
        ? ( skip_all => 'needs DBD::SQLite for testing' )
        : ( tests => 3 );
}

use lib qw(t/lib);

use_ok( 'DBICTest' );

use_ok( 'DBICTest::Schema' );

{
       my $warnings;
       local $SIG{__WARN__} = sub { $warnings .= $_[0] };
       eval { DBICTest::CD->create({ title => 'vacation in antarctica' }) };
       ok( $warnings !~ /uninitialized value/, "No warning from Storage" );
}