mirror of
https://github.com/octoleo/hosts.git
synced 2024-11-22 04:45:11 +00:00
14 lines
239 B
Bash
14 lines
239 B
Bash
#!/usr/bin/env bats
|
|
|
|
load test_helper
|
|
|
|
@test "\`file\` exits with status 0." {
|
|
run "$_HOSTS" file
|
|
[ "$status" -eq 0 ]
|
|
}
|
|
|
|
@test "\`file\` prints \$HOSTS_PATH contents." {
|
|
run "$_HOSTS" file
|
|
[[ "$output" == "$(cat $HOSTS_PATH)" ]]
|
|
}
|