Permalink
Browse files

Add tests for shell integration

  • Loading branch information...
mhinz committed Dec 7, 2017
1 parent af53c79 commit 643023d98fabbcdb76a749ddf7b5d6a29589faab
Showing with 11 additions and 0 deletions.
  1. +11 −0 test/shell.bats
View
@@ -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"

0 comments on commit 643023d

Please sign in to comment.