зеркало из https://github.com/github/ruby.git
Remove the test for DYM's verbose formatter
This commit is contained in:
Родитель
66df18c55e
Коммит
905be49bf6
|
@ -36,14 +36,6 @@ class TestOptionParser::DidYouMean < TestOptionParser
|
|||
end
|
||||
end
|
||||
|
||||
def test_verbose
|
||||
require 'did_you_mean/formatters/verbose_formatter'
|
||||
::DidYouMean.formatter = ::DidYouMean::VerboseFormatter.new
|
||||
assert_raise_with_message(OptionParser::InvalidOption, /invalid option: --baa\n\s+Did you mean\?\s+bar\s+baz\s*\Z/) do
|
||||
@opt.permute!(%w"--baa")
|
||||
end
|
||||
end
|
||||
|
||||
def test_ambiguos
|
||||
assert_raise_with_message(OptionParser::AmbiguousOption, /ambiguous option: --ba\nDid you mean\?\s+bar\s+baz\Z/) do
|
||||
@opt.permute!(%w"--ba")
|
||||
|
|
Загрузка…
Ссылка в новой задаче