patch from Robert Bohne <rbo@cpan.org> to check default_value in common tests
Rafael Kitover [Wed, 3 Feb 2010 16:56:29 +0000 (11:56 -0500)]
t/lib/dbixcsl_common_tests.pm

index 1bec30b..7b970ff 100644 (file)
@@ -56,7 +56,7 @@ sub _monikerize {
 sub run_tests {
     my $self = shift;
 
-    plan tests => 139 + ($self->{extra}->{count} || 0);
+    plan tests => 140 + ($self->{extra}->{count} || 0);
 
     $self->create();
 
@@ -573,6 +573,7 @@ sub test_schema {
 
         ok($class10->column_info('loader_test11')->{is_foreign_key}, 'Foreign key detected');
         ok($class11->column_info('loader_test10')->{is_foreign_key}, 'Foreign key detected');
+        is($class11->column_info('message')->{default_value},'foo', 'Default value check');
 
         my $obj10 = $rsobj10->create({ subject => 'xyzzy' });