summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authormo <mo.khan@gmail.com>2019-05-25 19:31:52 -0600
committermo <mo.khan@gmail.com>2019-05-25 19:31:52 -0600
commita0ed1fb8e76217c1013acff9169ba987c0c5044a (patch)
treeda5556a649468b6e922352847c678327579218a2 /test
parent3b353f1d1f778798fa5a232fd29ef5dd1ce5b8f1 (diff)
check multiple hostnames at once
Diffstat (limited to 'test')
-rw-r--r--test/problem-7.bats6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/problem-7.bats b/test/problem-7.bats
index 6b5e193..061df2e 100644
--- a/test/problem-7.bats
+++ b/test/problem-7.bats
@@ -19,3 +19,9 @@ load test_helper
assert_failure "error: a hostname is required"
}
+
+@test "invoke with multiple hostnames" {
+ run problem-7.sh localhost invalid
+
+ assert_success $'localhost is on the network\ninvalid is NOT on the network'
+}