pyenv/test/commands.bats
Mislav Marohnić bb6bccb782 tests galore
2013-03-07 15:07:32 -05:00

27 lines
442 B
Bash

#!/usr/bin/env bats
load test_helper
@test "commands" {
run rbenv-commands
assert_success
assert_line "init"
assert_line "rehash"
assert_line "shell"
refute_line "sh-shell"
assert_line "echo"
}
@test "commands --sh" {
run rbenv-commands --sh
assert_success
refute_line "init"
assert_line "shell"
}
@test "commands --no-sh" {
run rbenv-commands --no-sh
assert_success
assert_line "init"
refute_line "shell"
}