one more test ... why not

pull/1267/head
cornfeedhobo 2018-12-06 17:11:13 -05:00
parent 3645305644
commit 1030c0e9e1
No known key found for this signature in database
GPG Key ID: 724357093F994B26
1 changed files with 7 additions and 0 deletions

View File

@ -29,6 +29,13 @@ load ../../plugins/available/go.plugin
[ "$output" = "/bar /foo" ]
}
@test 'plugins go: single entry in GOPATH' {
export GOPATH="/foo"
load ../../plugins/available/go.plugin
echo "$(echo $PATH | cut -d':' -f1,2)"
[ "$(echo $PATH | cut -d':' -f1)" = "/foo/bin" ]
}
@test 'plugins go: multiple entries in GOPATH' {
export GOPATH="/foo:/bar"
load ../../plugins/available/go.plugin