1
0
mirror of https://github.com/octoleo/hosts.git synced 2024-11-13 08:46:28 +00:00

Edit hosts.bats test names to conform to project conventions.

This commit is contained in:
William Melody 2016-01-24 22:57:56 -08:00
parent 4e7cd2279e
commit 8e267fafd7

View File

@ -2,12 +2,12 @@
load test_helper
@test "when passed no arguments exit with status 0" {
@test "\`hosts\` with no arguments exits with status 0." {
run "$_HOSTS"
[ "$status" -eq 0 ]
}
@test "when passed no arguments print enabled rules." {
@test "\`hosts\` with no arguments prints enabled rules." {
run "$_HOSTS"
[[ "${lines[0]}" == "127.0.0.1 localhost" ]]
[[ "${lines[1]}" == "255.255.255.255 broadcasthost" ]]