Add strict/warnings test, adjust all offenders (wow, that was a lot)
[dbsrgits/DBIx-Class.git] / t / cdbi / 11-triggers.t
index 37c179c..c944248 100644 (file)
@@ -1,15 +1,7 @@
 use strict;
+use warnings;
 use Test::More;
 
-BEGIN {
-  eval "use DBIx::Class::CDBICompat;";
-  if ($@) {
-    plan (skip_all => 'Class::Trigger and DBIx::ContextualFetch required');
-    next;
-  }
-  plan tests => 13;
-}
-
 use lib 't/cdbi/testlib';
 use Film;
 
@@ -57,9 +49,11 @@ is + (
 ok $ver->delete, "Delete";
 
 {
-  Film->add_trigger(before_create => sub { 
+  Film->add_trigger(before_create => sub {
     my $self = shift;
     ok !$self->_attribute_exists('title'), "PK doesn't auto-vivify";
   });
   Film->create({director => "Me"});
 }
+
+done_testing;