summaryrefslogtreecommitdiff
path: root/.config/fisher/github.com/matchai/spacefish/tests/__sf_util_git_branch.test.fish
diff options
context:
space:
mode:
Diffstat (limited to '.config/fisher/github.com/matchai/spacefish/tests/__sf_util_git_branch.test.fish')
-rw-r--r--.config/fisher/github.com/matchai/spacefish/tests/__sf_util_git_branch.test.fish45
1 files changed, 0 insertions, 45 deletions
diff --git a/.config/fisher/github.com/matchai/spacefish/tests/__sf_util_git_branch.test.fish b/.config/fisher/github.com/matchai/spacefish/tests/__sf_util_git_branch.test.fish
deleted file mode 100644
index 33a65a1a..00000000
--- a/.config/fisher/github.com/matchai/spacefish/tests/__sf_util_git_branch.test.fish
+++ /dev/null
@@ -1,45 +0,0 @@
-source $DIRNAME/spacefish_test_setup.fish
-
-function setup
- spacefish_test_setup
- mkdir -p /tmp/tmp-spacefish
- cd /tmp/tmp-spacefish
- command git init >/dev/null
- command git config --local user.email "test@example.com"
- command git config --local user.name "Test User"
-end
-
-function teardown
- rm -rf /tmp/tmp-spacefish
-end
-
-test "Identifies HEAD before initial commit"
- (
- echo "HEAD"
- ) = (__sf_util_git_branch)
-end
-
-test "Identifies master branch"
- (
- command git commit --allow-empty -m "initial commit" --quiet
-
- echo "master"
- ) = (__sf_util_git_branch)
-end
-
-test "Identifies an alternate branch name"
- (
- command git checkout -b "testBranch" 2>/dev/null
- command git commit --allow-empty -m "initial commit" --quiet
-
- echo "testBranch"
- ) = (__sf_util_git_branch)
-end
-
-test "No result provided for non-git directory"
- (
- cd ~
-
- echo ""
- ) = (__sf_util_git_branch)
-end