aboutsummaryrefslogtreecommitdiffstats
path: root/t/104-drop-works-with-branch-names-with-slashes.t
diff options
context:
space:
mode:
Diffstat (limited to 't/104-drop-works-with-branch-names-with-slashes.t')
-rw-r--r--t/104-drop-works-with-branch-names-with-slashes.t29
1 files changed, 29 insertions, 0 deletions
diff --git a/t/104-drop-works-with-branch-names-with-slashes.t b/t/104-drop-works-with-branch-names-with-slashes.t
new file mode 100644
index 0000000..8219e3e
--- /dev/null
+++ b/t/104-drop-works-with-branch-names-with-slashes.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 feature/with-slashes');
+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 feature/with-slashes');
+
+
+done_testing;