Avoid polluting the user's Bash-it installation

All of the install steps are done in a test directory
This commit is contained in:
Nils Winkler
2017-05-16 17:49:21 +02:00
parent 6ff4071646
commit 2607bb815a

View File

@@ -1,5 +1,7 @@
#!/usr/bin/env bats
load ../test_helper
load ../../lib/composure
load ../../plugins/available/base.plugin
@@ -10,6 +12,12 @@ load ../../lib/search
NO_COLOR=true
function local_setup {
mkdir -p $BASH_IT
lib_directory="$(cd "$(dirname "$0")" && pwd)"
cp -r $lib_directory/../../* $BASH_IT/
}
@test "helpers search aliases" {
run _bash-it-search-component 'plugins' 'base'
[[ "${lines[0]}" =~ 'plugins' && "${lines[0]}" =~ 'base' ]]