[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
This commit is contained in:
Yusuke Endoh 2021-08-20 16:23:43 +09:00 коммит произвёл git
Родитель cad83fa3c4
Коммит 5e9598baea
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -13,7 +13,7 @@ class ErrorHighlightTest < Test::Unit::TestCase
def setup
if defined?(DidYouMean)
@did_you_mean_old_formatter = DidYouMean.formatter
DidYouMean.formatter = DummyFormatter
DidYouMean.formatter = DummyFormatter.new
end
end