[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:
parent
cad83fa3c4
commit
5e9598baea
@ -13,7 +13,7 @@ class ErrorHighlightTest < Test::Unit::TestCase
|
|||||||
def setup
|
def setup
|
||||||
if defined?(DidYouMean)
|
if defined?(DidYouMean)
|
||||||
@did_you_mean_old_formatter = DidYouMean.formatter
|
@did_you_mean_old_formatter = DidYouMean.formatter
|
||||||
DidYouMean.formatter = DummyFormatter
|
DidYouMean.formatter = DummyFormatter.new
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user