From: Robert Sedlacek Date: Wed, 26 Aug 2015 16:08:33 +0000 (+0000) Subject: test that SQL statement was passed in X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=cda17ef7d18ccb27ae534ec03c3333efe6bec534;p=dbsrgits%2FDBIx-Class-RowCountStatistics.git test that SQL statement was passed in --- diff --git a/t/basic.t b/t/basic.t index 9b7550a..db72f38 100644 --- a/t/basic.t +++ b/t/basic.t @@ -57,6 +57,8 @@ subtest 'simple' => sub { }; is scalar(@_COMPLETE), 1, 'single complete call'; is $_COMPLETE[0][0], 10, 'full count'; + ok length($_COMPLETE[0][1]), 'SQL was passed'; + like $_COMPLETE[0][1], qr{SELECT}i, 'SQL contains SELECT'; $rs->delete; };