mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-15 14:53:53 -05:00
tests galore
This commit is contained in:
27
test/commands.bats
Normal file
27
test/commands.bats
Normal file
@@ -0,0 +1,27 @@
|
||||
#!/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"
|
||||
}
|
||||
Reference in New Issue
Block a user