From: Rafael Kitover Date: Sat, 29 Aug 2009 01:26:05 +0000 (+0000) Subject: fix warning in MySQL tests X-Git-Tag: 0.04999_09~4 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=1d27214f9871b1b19f2593a117ea879bab42c36c;p=dbsrgits%2FDBIx-Class-Schema-Loader.git fix warning in MySQL tests --- diff --git a/t/11mysql_common.t b/t/11mysql_common.t index f917c90..95404a6 100644 --- a/t/11mysql_common.t +++ b/t/11mysql_common.t @@ -53,10 +53,10 @@ my $tester = dbixcsl_common_tests->new( 'MySQL ENUM values'); $rs = $schema->resultset($monikers->{mysql_loader_test2}); - my $column_info = $rs->result_source->column_info('somedate'); - my $default = $column_info->{default_value}; - ok (ref($default) eq 'SCALAR'), - 'CURRENT_TIMESTAMP default_value is a scalar ref'; + $column_info = $rs->result_source->column_info('somedate'); + my $default = $column_info->{default_value}; + ok ((ref($default) eq 'SCALAR'), + 'CURRENT_TIMESTAMP default_value is a scalar ref'); like $$default, qr/^CURRENT_TIMESTAMP\z/i, 'CURRENT_TIMESTAMP default eq "CURRENT_TIMESTAMP"'; },