use strict;
# FILENAME: basic.t
# CREATED: 12/07/13 06:28:57 by Kent Fredric (kentnl) <kentfredric@gmail.com>
# ABSTRACT: Simple functionality test.
use Path::Tiny qw(path);
my $tempdir = Path::Tiny->tempdir;
my $repo = $tempdir->child('git-repo');
my $home = $tempdir->child('homedir');
local $ENV{HOME} = $home->absolute->stringify;
local $ENV{GIT_AUTHOR_NAME} = 'A. U. Thor';
local $ENV{GIT_AUTHOR_EMAIL} = 'author@example.org';
local $ENV{GIT_COMMITTER_NAME} = 'A. U. Thor';
local $ENV{GIT_COMMITTER_EMAIL} = 'author@example.org';
$repo->mkpath;
my $file = $repo->child('testfile');
my $wrapper = Git::Wrapper->new($repo);
diag( "Git Version: " . $wrapper->version );
pass("Basic self check passed");
done_testing;