aboutsummaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorTeddy Wing2018-04-19 23:46:46 +0200
committerTeddy Wing2018-04-19 23:46:46 +0200
commitd53b95e8698031ba13d9fcb3fad6732a93729888 (patch)
treef928f9fbf3cb33032477e468f3510f2f5506a170 /t
parentd1617e2f29d1a8080602b60cd83ffddb01e88875 (diff)
parent3f6e62684b1fb1167435c6fa4f6c6f02aaff3937 (diff)
downloadgit-branch-list-d53b95e8698031ba13d9fcb3fad6732a93729888.tar.bz2
Merge branch 'fix-drop-for-branch-names-with-slashes'
Diffstat (limited to '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;