diff --git a/test/test_cli.rb b/test/test_cli.rb index 2abfed2..f9f9b40 100644 --- a/test/test_cli.rb +++ b/test/test_cli.rb @@ -10,4 +10,12 @@ class TestCli < Test::Unit::TestCase output = %x(is_master 127.0.0.1 echo 'GOOD!') assert_match('GOOD!', output) end + + def test_missing_arg + output = %x(is_master 127.0.0.1) + assert_match('Usage: ', output) + + output = %x(is_master) + assert_match('Usage: ', output) + end end