Replace an deprecated constant with a new one in did_you_mean
This commit is contained in:
parent
0d4bfbdbe1
commit
573d9d3a4a
@ -13,11 +13,7 @@ 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
|
||||||
case @formatter
|
::DidYouMean.formatter = ::DidYouMean::Formatter
|
||||||
when ::DidYouMean::PlainFormatter
|
|
||||||
else
|
|
||||||
::DidYouMean.formatter = ::DidYouMean::PlainFormatter.new
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def teardown
|
def teardown
|
||||||
|
Loading…
x
Reference in New Issue
Block a user