diff options
author | Teddy Wing | 2018-03-21 18:13:00 +0100 |
---|---|---|
committer | Teddy Wing | 2018-03-21 18:13:00 +0100 |
commit | 25991886eba08a3baa418d7b5f4e5e4eaa5df23b (patch) | |
tree | 3ebd3ecfce83ce5da79e6c442b16c0becfada4fd /t/102-drop-drops-current-branch.t | |
parent | 9a4abcc9b0e1121c89ae8a12be8eeb291e7dd34e (diff) | |
parent | 64fe9fc7fa4e073d6bb97cdee0d2914abb943391 (diff) | |
download | git-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.t | 29 |
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; |