Avoid polluting the user's Bash-it installation
All of the install steps are done in a test directory
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
#!/usr/bin/env bats
|
#!/usr/bin/env bats
|
||||||
|
|
||||||
|
load ../test_helper
|
||||||
|
|
||||||
load ../../lib/composure
|
load ../../lib/composure
|
||||||
load ../../plugins/available/base.plugin
|
load ../../plugins/available/base.plugin
|
||||||
|
|
||||||
@@ -10,6 +12,12 @@ load ../../lib/search
|
|||||||
|
|
||||||
NO_COLOR=true
|
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" {
|
@test "helpers search aliases" {
|
||||||
run _bash-it-search-component 'plugins' 'base'
|
run _bash-it-search-component 'plugins' 'base'
|
||||||
[[ "${lines[0]}" =~ 'plugins' && "${lines[0]}" =~ 'base' ]]
|
[[ "${lines[0]}" =~ 'plugins' && "${lines[0]}" =~ 'base' ]]
|
||||||
|
|||||||
Reference in New Issue
Block a user