summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/librelib-test.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/librelib-test.sh b/test/librelib-test.sh
index 36ba947..aeb9a8c 100644
--- a/test/librelib-test.sh
+++ b/test/librelib-test.sh
@@ -11,12 +11,12 @@ after() {
}
-it_fails_with_0_args() {
+it_displays_help_and_fails_with_0_args() {
ret=0
librelib >$tmpdir/stdout 2>$tmpdir/stderr || ret=$?
[[ -z "$(cat $tmpdir/stdout)" ]]
- [[ -n "$(cat $tmpdir/stderr)" ]]
+ [[ "$(sed 1q $tmpdir/stderr)" =~ Usage:.* ]]
[[ $ret != 0 ]]
}