diff options
author | Teddy Wing | 2018-03-21 18:11:48 +0100 |
---|---|---|
committer | Teddy Wing | 2018-03-21 18:11:48 +0100 |
commit | 9a4abcc9b0e1121c89ae8a12be8eeb291e7dd34e (patch) | |
tree | da6fe097af5baa9b4855693578fc99d35dfb0fb5 /t/100-clear-clears-all-branches-from-list.t | |
parent | a0d39b087ed767b52b6139275025df6f0a82b495 (diff) | |
parent | 4132e288ba6af49cf726d71785ec1f2ff9f39270 (diff) | |
download | git-branch-list-9a4abcc9b0e1121c89ae8a12be8eeb291e7dd34e.tar.bz2 |
Merge branch 'clear-command'
Diffstat (limited to 't/100-clear-clears-all-branches-from-list.t')
-rw-r--r-- | t/100-clear-clears-all-branches-from-list.t | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/t/100-clear-clears-all-branches-from-list.t b/t/100-clear-clears-all-branches-from-list.t new file mode 100644 index 0000000..952d68a --- /dev/null +++ b/t/100-clear-clears-all-branches-from-list.t @@ -0,0 +1,36 @@ +#!/usr/bin/env perl -w + +use strict; + +use Test::More; + +use File::Spec; + +my $BIN = File::Spec->rel2abs('git-branch-list'); + +chdir 't-git-repo' or die $!; + +system('git branch first'); +ok !$?; + +system("$BIN save first"); +ok !$?; + +system('git branch second'); +ok !$?; + +system("$BIN save second"); +ok !$?; + +system("$BIN clear"); +ok !$?; + +my $branch_list = qx($BIN); +is $branch_list, ''; + + +# Teardown +system('git branch -d first second'); + + +done_testing; |