Skip to content

Commit 7a8f0b4

Browse files
committed
Fixed the argument for DidYouMean.formatter=
Looks like this bug was hidden by did_you_mean's rescuing any exceptions.
1 parent b79d679 commit 7a8f0b4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/test_error_highlight.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def message_for(corrections)
1313
def setup
1414
if defined?(DidYouMean)
1515
@did_you_mean_old_formatter = DidYouMean.formatter
16-
DidYouMean.formatter = DummyFormatter
16+
DidYouMean.formatter = DummyFormatter.new
1717
end
1818
end
1919

0 commit comments

Comments
 (0)