Skip to content

Commit

Permalink
Fixed the argument for DidYouMean.formatter=
Browse files Browse the repository at this point in the history
Looks like this bug was hidden by did_you_mean's rescuing any
exceptions.
  • Loading branch information
mame committed Aug 20, 2021
1 parent b79d679 commit 7a8f0b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_error_highlight.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def message_for(corrections)
def setup
if defined?(DidYouMean)
@did_you_mean_old_formatter = DidYouMean.formatter
DidYouMean.formatter = DummyFormatter
DidYouMean.formatter = DummyFormatter.new
end
end

Expand Down

0 comments on commit 7a8f0b4

Please sign in to comment.