From b5f0a910981816e2c46eefba47d3bcda58a98884 Mon Sep 17 00:00:00 2001 From: Adrien Waksberg Date: Fri, 10 Nov 2017 08:01:18 +0100 Subject: [PATCH] feat: add test missing arg --- test/test_cli.rb | 8 ++++++++ 1 file changed, 8 insertions(+) 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