Skip to content

Commit

Permalink
Test migrating again
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed May 16, 2024
1 parent 45feda3 commit 8b72c55
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions t/command_migrate.t
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,15 @@ subtest 'Migrate' => sub {
}
like $buffer, qr/Migrated from/, 'right output';
is $app->pg->migrations->active, $latest, 'latest version is active';

$buffer = '';
{
open my $handle, '>', \$buffer;
local *STDOUT = $handle;
$app->start('migrate');
}
like $buffer, qr/Nothing to do/, 'right output';
is $app->pg->migrations->active, $latest, 'latest version is active';
};

done_testing();

0 comments on commit 8b72c55

Please sign in to comment.