mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Revert "Replace an deprecated constant with a new one in did_you_mean"
This reverts commit 573d9d3a4a
.
This commit is contained in:
parent
1f94ae019f
commit
1527f7569b
1 changed files with 5 additions and 1 deletions
|
@ -13,7 +13,11 @@ class TestOptionParser::DidYouMean < TestOptionParser
|
|||
@opt.def_option("--bar", Integer) { |v| @bar = v }
|
||||
@opt.def_option("--baz", Integer) { |v| @baz = v }
|
||||
@formatter = ::DidYouMean.formatter
|
||||
::DidYouMean.formatter = ::DidYouMean::Formatter
|
||||
case @formatter
|
||||
when ::DidYouMean::PlainFormatter
|
||||
else
|
||||
::DidYouMean.formatter = ::DidYouMean::PlainFormatter.new
|
||||
end
|
||||
end
|
||||
|
||||
def teardown
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue