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:
parent
30c17b1bfd
commit
b5f0a91098
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue