Added no suggestion test case
This commit is contained in:
parent
46fa301e82
commit
d4e52f672c
@ -15,6 +15,11 @@ class TestOptionParser::DidYouMean < TestOptionParser
|
|||||||
::DidYouMean.formatter = @formatter
|
::DidYouMean.formatter = @formatter
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_no_suggestion
|
||||||
|
assert_raise_with_message(OptionParser::InvalidOption, "invalid option: --cuz") do
|
||||||
|
@opt.permute!(%w"--cuz")
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
def test_plain
|
def test_plain
|
||||||
::DidYouMean.formatter = ::DidYouMean::PlainFormatter.new
|
::DidYouMean.formatter = ::DidYouMean::PlainFormatter.new
|
||||||
|
Loading…
x
Reference in New Issue
Block a user