diff options
author | Yuki Nishijima <yk.nishijima@gmail.com> | 2021-12-22 21:21:25 +0900 |
---|---|---|
committer | Yuki Nishijima <yk.nishijima@gmail.com> | 2021-12-22 21:21:27 +0900 |
commit | 573d9d3a4a0f112379874cedf4e494515e4b3f15 (patch) | |
tree | 9e29a774610f0813631794832ce911c05aa17d76 | |
parent | 0d4bfbdbe1f880c712b3e60de5fce423e6096f8d (diff) |
Replace an deprecated constant with a new one in did_you_mean
-rw-r--r-- | test/optparse/test_did_you_mean.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/test/optparse/test_did_you_mean.rb b/test/optparse/test_did_you_mean.rb index aa866f4072..a9ad051f03 100644 --- a/test/optparse/test_did_you_mean.rb +++ b/test/optparse/test_did_you_mean.rb @@ -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 |