aboutsummaryrefslogtreecommitdiffstats
path: root/t/102-drop-drops-current-branch.t
blob: 5534b6ed456f255cd938e1916fe08004e1cd059a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env perl -w

use strict;

use Test::More;

use Bin qw($BIN);

chdir 't-git-repo' or die $!;

system('git checkout -b first');
ok !$?;

system("$BIN save");
ok !$?;

system("$BIN drop");
ok !$?;

my $branch_list = qx($BIN);
is $branch_list, '';


# Teardown
system('git checkout master');
system('git branch -d first');


done_testing;