提交 baaf9aca 编写于 作者: A Aaron Patterson

adding a test for --help defaults

上级 169fa516
......@@ -21,6 +21,13 @@ def test_version
end
end
def test_default_help
argv = ['zomg', 'how', 'are', 'you']
scrubber = ARGVScrubber.new argv
args = scrubber.prepare!
assert_equal ['--help'] + argv.drop(1), args
end
def test_prepare_returns_args
scrubber = ARGVScrubber.new ['hi mom']
args = scrubber.prepare!
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册