tweak quotes test to output text on failure
[dbsrgits/DBIx-Class.git] / t / 19quotes.t
index 9efad9b..ad44bcb 100644 (file)
@@ -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';