hosts/test/file.bats

14 lines
239 B
Plaintext
Raw Normal View History

2016-01-25 05:21:40 +00:00
#!/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." {
2016-01-25 05:21:40 +00:00
run "$_HOSTS" file
[[ "$output" == "$(cat $HOSTS_PATH)" ]]
2016-01-25 05:21:40 +00:00
}