[前][次][番号順一覧][スレッド一覧]

ruby-changes:70551

From: Yuki <ko1@a...>
Date: Fri, 24 Dec 2021 23:22:12 +0900 (JST)
Subject: [ruby-changes:70551] 03c54a09ec (master): Revert "Revert "Replace an deprecated constant with a new one in did_you_mean""

https://git.ruby-lang.org/ruby.git/commit/?id=03c54a09ec

From 03c54a09ecaacb37ddc85d8ca74dc5f57b49aef1 Mon Sep 17 00:00:00 2001
From: Yuki Nishijima <yk.nishijima@g...>
Date: Fri, 24 Dec 2021 23:21:41 +0900
Subject: Revert "Revert "Replace an deprecated constant with a new one in
 did_you_mean""

This reverts commit 1527f7569b0412f3bc7ac98a3461e59a4891ed96.
---
 test/optparse/test_did_you_mean.rb | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/test/optparse/test_did_you_mean.rb b/test/optparse/test_did_you_mean.rb
index aa866f40721..a9ad051f033 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 https://github.com/ruby/ruby/blob/trunk/test/optparse/test_did_you_mean.rb#L13
     @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
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]