aboutsummaryrefslogtreecommitdiffstats
path: root/t/102-drop-drops-current-branch.t
diff options
context:
space:
mode:
authorTeddy Wing2018-03-21 18:13:00 +0100
committerTeddy Wing2018-03-21 18:13:00 +0100
commit25991886eba08a3baa418d7b5f4e5e4eaa5df23b (patch)
tree3ebd3ecfce83ce5da79e6c442b16c0becfada4fd /t/102-drop-drops-current-branch.t
parent9a4abcc9b0e1121c89ae8a12be8eeb291e7dd34e (diff)
parent64fe9fc7fa4e073d6bb97cdee0d2914abb943391 (diff)
downloadgit-branch-list-25991886eba08a3baa418d7b5f4e5e4eaa5df23b.tar.bz2
Merge branch 'drop-multiple-branches'
Diffstat (limited to 't/102-drop-drops-current-branch.t')
-rw-r--r--t/102-drop-drops-current-branch.t29
1 files changed, 29 insertions, 0 deletions
diff --git a/t/102-drop-drops-current-branch.t b/t/102-drop-drops-current-branch.t
new file mode 100644
index 0000000..5534b6e
--- /dev/null
+++ b/t/102-drop-drops-current-branch.t
@@ -0,0 +1,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;