Revert "Replace an deprecated constant with a new one in did_you_mean"

This reverts commit 573d9d3a4a.
This commit is contained in:
Yuki Nishijima 2021-12-23 10:48:21 +09:00
Родитель 1f94ae019f
Коммит 1527f7569b
1 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -13,7 +13,11 @@ class TestOptionParser::DidYouMean < TestOptionParser
@opt.def_option("--bar", Integer) { |v| @bar = v } @opt.def_option("--bar", Integer) { |v| @bar = v }
@opt.def_option("--baz", Integer) { |v| @baz = v } @opt.def_option("--baz", Integer) { |v| @baz = v }
@formatter = ::DidYouMean.formatter @formatter = ::DidYouMean.formatter
::DidYouMean.formatter = ::DidYouMean::Formatter case @formatter
when ::DidYouMean::PlainFormatter
else
::DidYouMean.formatter = ::DidYouMean::PlainFormatter.new
end
end end
def teardown def teardown