mirror of
https://github.com/natelandau/shell-scripting-templates.git
synced 2025-11-11 22:43:47 -05:00
rename binaryExists to commandExists
This commit is contained in:
@@ -86,13 +86,13 @@ teardown() {
|
||||
assert_failure
|
||||
}
|
||||
|
||||
@test "_binaryExists_: true" {
|
||||
run _binaryExists_ "vi"
|
||||
@test "_commandExists_: true" {
|
||||
run _commandExists_ "vi"
|
||||
assert_success
|
||||
}
|
||||
|
||||
@test "_binaryExists_: false" {
|
||||
run _binaryExists_ "someNonexistantBinary"
|
||||
@test "_commandExists_: false" {
|
||||
run _commandExists_ "someNonexistantBinary"
|
||||
assert_failure
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user