We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcaa918 commit be51f4cCopy full SHA for be51f4c
test/did_you_mean/test_verbose_formatter.rb
@@ -1,14 +1,29 @@
1
require_relative './helper'
2
3
class VerboseFormatterTest < Test::Unit::TestCase
4
+ class ErrorHighlightDummyFormatter
5
+ def message_for(spot)
6
+ ""
7
+ end
8
9
+
10
def setup
11
require_relative File.join(DidYouMean::TestHelper.root, 'verbose')
12
13
DidYouMean.formatter = DidYouMean::VerboseFormatter.new
14
15
+ if defined?(ErrorHighlight)
16
+ @error_highlight_old_formatter = ErrorHighlight.formatter
17
+ ErrorHighlight.formatter = ErrorHighlightDummyFormatter.new
18
19
end
20
21
def teardown
22
DidYouMean.formatter = DidYouMean::PlainFormatter.new
23
24
25
+ ErrorHighlight.formatter = @error_highlight_old_formatter
26
27
28
29
def test_message
0 commit comments