mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Added no suggestion test case
This commit is contained in:
parent
46fa301e82
commit
d4e52f672c
1 changed files with 5 additions and 0 deletions
|
@ -15,6 +15,11 @@ class TestOptionParser::DidYouMean < TestOptionParser
|
|||
::DidYouMean.formatter = @formatter
|
||||
end
|
||||
|
||||
def test_no_suggestion
|
||||
assert_raise_with_message(OptionParser::InvalidOption, "invalid option: --cuz") do
|
||||
@opt.permute!(%w"--cuz")
|
||||
end
|
||||
end
|
||||
|
||||
def test_plain
|
||||
::DidYouMean.formatter = ::DidYouMean::PlainFormatter.new
|
||||
|
|
Loading…
Add table
Reference in a new issue