From 2607bb815a5a46249e03096eca97de060713e8f0 Mon Sep 17 00:00:00 2001 From: Nils Winkler Date: Tue, 16 May 2017 17:49:21 +0200 Subject: [PATCH] Avoid polluting the user's Bash-it installation All of the install steps are done in a test directory --- test/lib/search.bats | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/lib/search.bats b/test/lib/search.bats index ae9e9a89..5c2873da 100644 --- a/test/lib/search.bats +++ b/test/lib/search.bats @@ -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' ]]