1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[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 committed by git
parent cad83fa3c4
commit 5e9598baea

View file

@ -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