asdf/test/banned_commands.bats

23 lines
386 B
Plaintext
Raw Normal View History

#!/usr/bin/env bats
load test_helpers
2017-11-16 20:43:52 -07:00
banned_commands=(realpath eval)
setup() {
setup_asdf_dir
}
teardown() {
clean_asdf_dir
}
@test "banned commands are not found in source code" {
for cmd in "${banned_commands[@]}"; do
# Assert command is not used in the lib and bin dirs
run grep -nHR "$cmd" lib bin
[ "$status" -eq 1 ]
[ "$output" = "" ]
done
}