ruby-changes:67203
From: Yusuke <ko1@a...>
Date: Fri, 20 Aug 2021 16:27:21 +0900 (JST)
Subject: [ruby-changes:67203] 5e9598baea (master): [ruby/error_highlight] Fixed the argument for DidYouMean.formatter=
https://git.ruby-lang.org/ruby.git/commit/?id=5e9598baea From 5e9598baea97c53757f12713bacc7f19f315c846 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Fri, 20 Aug 2021 16:23:43 +0900 Subject: [ruby/error_highlight] Fixed the argument for DidYouMean.formatter= Looks like this bug was hidden by did_you_mean's rescuing any exceptions. https://github.com/ruby/error_highlight/commit/7a8f0b4796 --- test/error_highlight/test_error_highlight.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/error_highlight/test_error_highlight.rb b/test/error_highlight/test_error_highlight.rb index 5d90f75..9fc1420 100644 --- a/test/error_highlight/test_error_highlight.rb +++ b/test/error_highlight/test_error_highlight.rb @@ -13,7 +13,7 @@ class ErrorHighlightTest < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/error_highlight/test_error_highlight.rb#L13 def setup if defined?(DidYouMean) @did_you_mean_old_formatter = DidYouMean.formatter - DidYouMean.formatter = DummyFormatter + DidYouMean.formatter = DummyFormatter.new end end -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/