From bf1e66aa5ec90325bf358469d1b13fac6777c045 Mon Sep 17 00:00:00 2001 From: Zach Holman Date: Fri, 18 Nov 2011 12:49:01 -0800 Subject: [PATCH] Test for help on empty argv --- spark-test.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spark-test.sh b/spark-test.sh index cc5d9b6..5667a52 100644 --- a/spark-test.sh +++ b/spark-test.sh @@ -4,6 +4,10 @@ describe "spark: Generates sparklines for a set of data." spark="./spark" +it_shows_help_with_no_argv() { + $spark | grep USAGE +} + it_graphs_argv_data() { graph="$($spark 1,5,22,13,5)"