Win32 can have git binaries with extensions, and non-/ path separators
Christian Walde [Sun, 29 May 2011 21:36:44 +0000 (23:36 +0200)]
t/02git_util.t

index 211242a..428677d 100644 (file)
@@ -26,7 +26,7 @@ my $util = Gitalist::Git::Util->new(
 );
 isa_ok($util, 'Gitalist::Git::Util');
 
-like( $util->_git, qr#/git$#, 'git binary found');
+like( $util->_git, qr#\bgit(\.\w+)*$#, 'git binary found');
 isa_ok($util->gpp, 'Git::PurePerl', 'gpp instance created');
 
 done_testing;