attempt to make travis happy

pull/1284/head
cornfeedhobo 2019-06-27 22:56:50 -05:00
parent cf6f84725d
commit cb1011d8f1
No known key found for this signature in database
GPG Key ID: 724357093F994B26
1 changed files with 1 additions and 9 deletions

View File

@ -5,21 +5,13 @@ load ../../lib/helpers
load ../../lib/composure
load ../../plugins/available/go.plugin
function local_setup {
export OLD_PATH="$PATH"
export PATH="/usr/bin:/bin:/usr/sbin"
}
function local_teardown {
export PATH="$OLD_PATH"
unset OLD_PATH
}
@test 'plugins go: single entry in GOPATH' {
export GOROOT='/baz'
export GOPATH='/foo'
load ../../plugins/available/go.plugin
assert_equal $PATH 'foobar'
assert_equal $(cut -d':' -f1,2 <<<$PATH | tr -d '\n') '/foo/bin:/baz/bin'
}