Full featured search test, dig into travis failures
parent
fa392e0e18
commit
8c5ec75898
|
|
@ -9,13 +9,14 @@ load ../../lib/helpers
|
||||||
|
|
||||||
NO_COLOR=true
|
NO_COLOR=true
|
||||||
|
|
||||||
IS_DARWIN=
|
|
||||||
[[ "$(uname -s)" == "Darwin" ]] && IS_DARWIN=true
|
|
||||||
|
|
||||||
@test "helpers search aliases" {
|
@test "helpers search aliases" {
|
||||||
if [ -z "$IS_DARWIN" ]; then
|
|
||||||
skip 'search test only runs on OSX'
|
|
||||||
fi
|
|
||||||
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' ]]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@test "helpers search all ruby et al" {
|
||||||
|
run _bash-it-search 'ruby' 'gem' 'bundle' 'rake' 'rails'
|
||||||
|
[[ "${lines[0]}" == 'aliases : bundler rails' ]]
|
||||||
|
[[ "${lines[1]}" == 'plugins : chruby chruby-auto ruby' ]]
|
||||||
|
[[ "${lines[2]}" == 'completions : bundler gem rake' ]]
|
||||||
|
}
|
||||||
|
|
|
||||||
2
test/run
2
test/run
|
|
@ -3,4 +3,4 @@ PATH=$PATH:$(pwd)/bats/bin
|
||||||
set +e
|
set +e
|
||||||
[[ -z "$(which bats)" ]] && git clone --depth 1 https://github.com/sstephenson/bats.git
|
[[ -z "$(which bats)" ]] && git clone --depth 1 https://github.com/sstephenson/bats.git
|
||||||
set -e
|
set -e
|
||||||
exec bats ${CI:+--tap} test/{lib,plugins}
|
exec ./bats/bin/bats ${CI:+--tap} ./test/{lib,plugins}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue