aboutsummaryrefslogtreecommitdiff
path: root/test/segments
diff options
context:
space:
mode:
authorJason Hutchinson <zikes@zikes.me>2017-04-19 08:09:07 +0300
committerJason Hutchinson <zikes@zikes.me>2017-04-19 08:09:07 +0300
commit192d634e08c428fb3ea82aefc3665dba941be3d8 (patch)
treeda0353cac62b3b2fa63f8da85ad17011aaa64a90 /test/segments
parent21d8fc63780f6046267ef9d4c1df46de2eac9913 (diff)
ensure go_version segment prints if PWD is subset of non-empty GOPATH
Diffstat (limited to 'test/segments')
-rwxr-xr-xtest/segments/go_version.spec3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/segments/go_version.spec b/test/segments/go_version.spec
index aa9f625d..173086e0 100755
--- a/test/segments/go_version.spec
+++ b/test/segments/go_version.spec
@@ -19,8 +19,11 @@ function testGo() {
alias go=mockGo
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(go_version)
+ PWD="$HOME/go/src/github.com/bhilburn/powerlevel9k"
+
assertEquals "%K{green} %F{255}go1.5.3 %k%F{green}%f " "$(build_left_prompt)"
+ unset PWD
unset POWERLEVEL9K_LEFT_PROMPT_ELEMENTS
unalias go
}