1
0
Fork 0
mirror of https://github.com/nishiki/is_master.git synced 2024-11-23 03:27:51 +00:00

feat: add test missing arg

This commit is contained in:
Adrien Waksberg 2017-11-10 08:01:18 +01:00
parent 30c17b1bfd
commit b5f0a91098

View file

@ -10,4 +10,12 @@ class TestCli < Test::Unit::TestCase
output = %x(is_master 127.0.0.1 echo 'GOOD!') output = %x(is_master 127.0.0.1 echo 'GOOD!')
assert_match('GOOD!', output) assert_match('GOOD!', output)
end 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 end