Exit directory upon completion, update tests
Signed-off-by: Mike Fiedler <miketheman@gmail.com>pull/1050/head
parent
47041bc817
commit
8015bba27f
|
|
@ -241,6 +241,8 @@ _bash-it-version() {
|
||||||
|
|
||||||
CURRENT_GIT_SHA=$(git rev-parse --verify HEAD)
|
CURRENT_GIT_SHA=$(git rev-parse --verify HEAD)
|
||||||
echo "https://github.com/Bash-it/bash-it/commit/$CURRENT_GIT_SHA"
|
echo "https://github.com/Bash-it/bash-it/commit/$CURRENT_GIT_SHA"
|
||||||
|
|
||||||
|
cd - &> /dev/null || return
|
||||||
}
|
}
|
||||||
|
|
||||||
_bash-it-describe ()
|
_bash-it-describe ()
|
||||||
|
|
|
||||||
|
|
@ -99,32 +99,32 @@ function __check_completion () {
|
||||||
|
|
||||||
@test "completion bash-it: show options" {
|
@test "completion bash-it: show options" {
|
||||||
run __check_completion 'bash-it '
|
run __check_completion 'bash-it '
|
||||||
assert_line "0" "disable enable help migrate search show update"
|
assert_line "0" "disable enable help migrate search show update version"
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "completion bash-it: bash-ti - show options" {
|
@test "completion bash-it: bash-ti - show options" {
|
||||||
run __check_completion 'bash-ti '
|
run __check_completion 'bash-ti '
|
||||||
assert_line "0" "disable enable help migrate search show update"
|
assert_line "0" "disable enable help migrate search show update version"
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "completion bash-it: shit - show options" {
|
@test "completion bash-it: shit - show options" {
|
||||||
run __check_completion 'shit '
|
run __check_completion 'shit '
|
||||||
assert_line "0" "disable enable help migrate search show update"
|
assert_line "0" "disable enable help migrate search show update version"
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "completion bash-it: bashit - show options" {
|
@test "completion bash-it: bashit - show options" {
|
||||||
run __check_completion 'bashit '
|
run __check_completion 'bashit '
|
||||||
assert_line "0" "disable enable help migrate search show update"
|
assert_line "0" "disable enable help migrate search show update version"
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "completion bash-it: batshit - show options" {
|
@test "completion bash-it: batshit - show options" {
|
||||||
run __check_completion 'batshit '
|
run __check_completion 'batshit '
|
||||||
assert_line "0" "disable enable help migrate search show update"
|
assert_line "0" "disable enable help migrate search show update version"
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "completion bash-it: bash_it - show options" {
|
@test "completion bash-it: bash_it - show options" {
|
||||||
run __check_completion 'bash_it '
|
run __check_completion 'bash_it '
|
||||||
assert_line "0" "disable enable help migrate search show update"
|
assert_line "0" "disable enable help migrate search show update version"
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "completion bash-it: show - show options" {
|
@test "completion bash-it: show - show options" {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue