Add tests for shell integration

This commit is contained in:
Marco Hinz 2017-12-07 02:29:48 +01:00
parent af53c790cc
commit 643023d98f
No known key found for this signature in database
GPG key ID: 1C980A1B657B4A4F

View file

@ -2,6 +2,17 @@
load test_helper
@test "shell integration disabled" {
run rbenv shell
assert_failure "rbenv: shell integration not enabled. Run \`rbenv init' for instructions."
}
@test "shell integration enabled" {
eval "$(rbenv init -)"
run rbenv shell
assert_success "rbenv: no shell-specific version configured"
}
@test "no shell version" {
mkdir -p "${RBENV_TEST_DIR}/myproject"
cd "${RBENV_TEST_DIR}/myproject"