X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fcdbi-t%2Fset_to_undef.t;fp=t%2Fcdbi-t%2Fset_to_undef.t;h=0000000000000000000000000000000000000000;hb=50891152d0b24649bfd67bdba97feec86b11c064;hp=792c55efc91f5bcbc4755b03e48c1c4d8c33f392;hpb=23209c4474d71e419b3fcf9699ae05565c2997f5;p=dbsrgits%2FDBIx-Class.git diff --git a/t/cdbi-t/set_to_undef.t b/t/cdbi-t/set_to_undef.t deleted file mode 100644 index 792c55e..0000000 --- a/t/cdbi-t/set_to_undef.t +++ /dev/null @@ -1,34 +0,0 @@ -#!/usr/bin/perl -w - -use strict; -use Test::More; - -BEGIN { - eval "use DBIx::Class::CDBICompat;"; - plan skip_all => "Class::Trigger and DBIx::ContextualFetch required: $@" - if $@; - plan skip_all => "DateTime required" unless eval { require DateTime }; - plan tests => 2; -} - - -# Don't use Test::NoWarnings because of an unrelated DBD::SQLite warning. -my @warnings; -local $SIG{__WARN__} = sub { - push @warnings, @_; -}; - -{ - package Thing; - - use base 'DBIx::Class::Test::SQLite'; - - Thing->columns(All => qw[thing_id this that date]); -} - -my $thing = Thing->construct({ thing_id => 23, this => 42 }); -$thing->set( this => undef ); -is $thing->get( "this" ), undef, 'undef set'; -$thing->discard_changes; - -is @warnings, 0, 'no warnings';