From: Vincent Pit Date: Sun, 5 Oct 2008 22:27:59 +0000 (+0200) Subject: Really get rid of t/repos X-Git-Tag: v0.02~3 X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Frgit.git;a=commitdiff_plain;h=eb3cdeba8301dba3e0444658b97c24e3a73fad84 Really get rid of t/repos --- diff --git a/t/15-failures.t b/t/15-failures.t index a25d334..82f1409 100644 --- a/t/15-failures.t +++ b/t/15-failures.t @@ -20,27 +20,27 @@ $res = eval { App::Rgit->new(root => $0) }; is($@, '', 'App::Rgit->new(): wrong root: does not croak'); is($res, undef, 'App::Rgit->new(): wrong root: returns undef'); -$res = eval { App::Rgit->new(root => 't/repos') }; +$res = eval { App::Rgit->new(root => 't') }; is($@, '', 'App::Rgit->new(): no git: does not croak'); is($res, undef, 'App::Rgit->new(): no git: returns undef'); -$res = eval { App::Rgit->new(root => 't/repos', git => $0) }; +$res = eval { App::Rgit->new(root => 't', git => $0) }; is($@, '', 'App::Rgit->new(): wrong git: does not croak'); is($res, undef, 'App::Rgit->new(): wrong git: returns undef'); -$res = eval { App::Rgit->new(root => 't/repos', git => 't/bin/git') }; +$res = eval { App::Rgit->new(root => 't', git => 't/bin/git') }; is($@, '', 'App::Rgit->new(): no cmd: does not croak'); isa_ok($res, 'App::Rgit', 'App::Rgit->new(): no cmd: returns an object'); -$res = eval { App::Rgit->new(root => 't/repos', git => 't/bin/git', cmd => 'version'); }; +$res = eval { App::Rgit->new(root => 't', git => 't/bin/git', cmd => 'version'); }; is($@, '', 'App::Rgit->new(): no args: does not croak'); isa_ok($res, 'App::Rgit', 'App::Rgit->new(): no args: returns an object'); -$res = eval { $res->new(root => 't/repos', git => 't/bin/git', cmd => 'version'); }; +$res = eval { $res->new(root => 't', git => 't/bin/git', cmd => 'version'); }; is($@, '', '$ar->new(): no args: does not croak'); isa_ok($res, 'App::Rgit', '$ar->new(): no args: returns an object'); -$res = eval { App::Rgit::new(undef, root => 't/repos', git => 't/bin/git', cmd => 'version'); }; +$res = eval { App::Rgit::new(undef, root => 't', git => 't/bin/git', cmd => 'version'); }; is($@, '', 'undef->App::Rgit::new(): no args: does not croak'); isa_ok($res, 'App::Rgit','undef->App::Rgit::new(): no args: returns an object'); diff --git a/t/21-once.t b/t/21-once.t index cf79046..1b0e88b 100644 --- a/t/21-once.t +++ b/t/21-once.t @@ -18,7 +18,7 @@ for (qw/version help daemon init/) { my ($fh, $filename) = tempfile(UNLINK => 1); my $exit = App::Rgit->new( git => abs_path('t/bin/git'), - root => 't/repos', + root => 't', cmd => $_, args => [ abs_path($filename), $_, qw/^n ^g ^w ^b ^^/ ] )->run;