X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F75limit.t;h=61f552068811d37f326050fb687f81f4293b6ed5;hb=d4a39575216302461a304c8c5211109ffb9d39f0;hp=881668de4da04f2c1e1b47bca47452e7cb45ab6a;hpb=e60dc79fcd4d6318e83584b826526e65048b86a9;p=dbsrgits%2FDBIx-Class.git diff --git a/t/75limit.t b/t/75limit.t index 881668d..61f5520 100644 --- a/t/75limit.t +++ b/t/75limit.t @@ -1,5 +1,5 @@ use strict; -use warnings; +use warnings; use Test::More; use lib qw(t/lib); @@ -7,11 +7,6 @@ use DBICTest; my $schema = DBICTest->init_schema(); -BEGIN { - eval "use DBD::SQLite"; - plan $@ ? (skip_all => 'needs DBD::SQLite for testing') : (tests => 10); -} - # test LIMIT my $it = $schema->resultset("CD")->search( {}, { rows => 3, @@ -64,7 +59,7 @@ is( $cds[0]->title, "Spoonful of bees", "offset with no limit" ); # requires SQL::Abstract >= 1.20 $it = $schema->resultset("CD")->search( { title => [ - -and => + -and => { -like => '%bees' }, @@ -77,3 +72,4 @@ $it = $schema->resultset("CD")->search( ); is( $it->count, 1, "complex abstract count ok" ); +done_testing;