From: Matt S Trout Date: Fri, 30 Jun 2006 20:05:07 +0000 (+0000) Subject: tweak quotes test to output text on failure X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=296ef183e78c6c74e2b33995f9187abb0165081c;p=dbsrgits%2FDBIx-Class-Historic.git tweak quotes test to output text on failure --- diff --git a/Changes b/Changes index 7dc2d20..b9d9cfd 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,6 @@ Revision history for DBIx::Class + - tweak quotes test to output text on failure - fix Schema->txn_do to not fail as a classmethod 0.06999_04 2006-06-29 20:18:47 diff --git a/t/19quotes.t b/t/19quotes.t index 9efad9b..ad44bcb 100644 --- a/t/19quotes.t +++ b/t/19quotes.t @@ -31,7 +31,7 @@ $rs = DBICTest::CD->search({}, my $warnings = ''; local $SIG{__WARN__} = sub { $warnings .= $_[0] }; my $first = eval{ $rs->first() }; - ok( $warnings =~ /ORDER BY terms/, "Problem with ORDER BY quotes" ); + like( $warnings, qr/ORDER BY terms/, "Problem with ORDER BY quotes" ); } my $order = 'year DESC';