App-GitHooks-Plugin-RequireTicketID
view release on metacpan or search on metacpan
plugins => [ 'App::GitHooks::Plugin::RequireTicketID' ],
);
# Set up test files.
ok_add_files(
files => $test->{'files'},
repository => $repository,
);
# Try to commit.
my $stderr;
lives_ok(
sub
{
$stderr = Capture::Tiny::capture_stderr(
sub
{
$repository->run( 'commit', '-m', $test->{'commit_message'} );
}
);
note( $stderr );
},
'Commit the changes.',
);
like(
$stderr,
$test->{'expected'},
"The output matches expected results.",
);
}
);
}
( run in 0.681 second using v1.01-cache-2.11-cpan-26ccb49234f )