Skip to content

Commit

Permalink
Note the git version in tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumeaubert committed Jun 4, 2014
1 parent b0b1f98 commit 0b48434
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions MANIFEST
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ example/examples.txt
ignore.txt
lib/App/GitHooks/Plugin/PerlInterpreter.pm
t/00-load.t
t/01-git_version.t
t/03-get_file_check_description.t
t/05-get_file_pattern.t
t/10-run.t
Expand Down
20 changes: 20 additions & 0 deletions t/01-git_version.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!perl

use strict;
use warnings;

use Test::FailWarnings -allow_deps => 1;
use Test::More tests => 2;


use_ok('Git::Repository');

ok(
defined(
my $git_version = Git::Repository->version()
),
'Retrieve the git version.',
);
$git_version //= '(undef)';

diag( 'Using git version ' . $git_version . '.' );

0 comments on commit 0b48434

Please sign in to comment.