A few fixes to get the JSON test working.
[catagits/Gitalist.git] / t / 02git_util.t
CommitLineData
cce03a80 1use FindBin qw/$Bin/;
2BEGIN { do "$FindBin::Bin/../script/env" or die $@ }
941bb5a1 3use strict;
4use warnings;
7a1d9791 5use Test::More;
941bb5a1 6
7use Data::Dumper;
8
7a1d9791 9BEGIN {
10 use_ok 'Gitalist::Git::Util';
44a9ed75 11 use_ok 'Gitalist::Git::Repository';
7a1d9791 12}
941bb5a1 13
14use Path::Class;
58251520 15my $gitdir = dir("$Bin/lib/repositories/repo1");
4baaeeef 16
44a9ed75 17my $proj = Gitalist::Git::Repository->new($gitdir);
7a1d9791 18my $util = Gitalist::Git::Util->new(
82bc0f05 19 repository => $proj,
7a1d9791 20);
21isa_ok($util, 'Gitalist::Git::Util');
941bb5a1 22
7a1d9791 23like( $util->_git, qr#/git$#, 'git binary found');
defb0050 24isa_ok($util->gpp, 'Git::PurePerl', 'gpp instance created');
941bb5a1 25
7a1d9791 26done_testing;