7 use File::Temp qw/tempfile/;
9 use Test::More tests => 4 * 2;
14 ([ [ qw/^n ^g ^w ^b ^^/ ] ]) x 4
17 for (qw/version help daemon init/) {
18 my ($fh, $filename) = tempfile(UNLINK => 1);
19 my $exit = App::Rgit->new(
20 git => abs_path('t/bin/git'),
23 args => [ abs_path($filename), $_, qw/^n ^g ^w ^b ^^/ ]
25 is($exit, 0, "each $_ returned 0");
26 my @lines = sort split /\n/, do { local $/; <$fh> };
27 my $res = [ map [ split /\|/, $_ ], @lines ];
28 my $exp = [ [ $_, qw/^n ^g ^w ^b ^^/ ] ];
29 is_deeply($res, $exp, "each $_ did the right thing");