Replace an deprecated constant with a new one in did_you_mean

This commit is contained in:
Yuki Nishijima 2021-12-22 21:21:25 +09:00
Родитель 0d4bfbdbe1
Коммит 573d9d3a4a
1 изменённых файлов: 1 добавлений и 5 удалений

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

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