Skip to content

Commit

Permalink
make test for default SQLite under Test::Roo more explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
rabbiveesh authored and fREW Schmidt committed Dec 29, 2019
1 parent bd043c4 commit 8a5d003
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions t/ResultSet/Explain.t
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ top_test basic => sub {
my $rs = $self->rs;
SKIP: {
skip 'cannot test without a connection', 1 unless $self->connected;
$ran++;
$ran++ if $self->engine eq 'SQLite';

my $s;
my $e = exception { $s = $rs->explain };
Expand All @@ -32,5 +32,5 @@ run_me(SQLite => {
run_me(Pg => { engine => 'Pg' });
run_me(mysql => { engine => 'mysql' });

ok $ran, 'tests were acutally run';
ok $ran, 'tests were run against default SQLite';
done_testing;
4 changes: 2 additions & 2 deletions t/ResultSet/Shortcut/ResultsExist.t
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ top_test 'basic functionality' => sub {
SKIP: {
skip 'cannot test without a connection', 1 unless $self->connected;

$ran++;
$ran++ if $self->engine eq 'SQLite';
$schema->prepopulate;

my $rs = $schema->resultset( 'Foo' )->search({ id => { '>' => 0 } });
Expand Down Expand Up @@ -63,5 +63,5 @@ run_me(SQLite => {
run_me(Pg => { engine => 'Pg' });
run_me(mysql => { engine => 'mysql' });

ok $ran, 'tests were acutally run';
ok $ran, 'tests were run against default SQLite';
done_testing;

0 comments on commit 8a5d003

Please sign in to comment.