summaryrefslogtreecommitdiff
path: root/test/handler/test_debride_handler.vader
blob: 62851468630d212749aab98e5ad56b978e30f1ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Before:
  runtime ale_linters/ruby/debride.vim

After:
  call ale#linter#Reset()

Execute(The debride linter parses output correctly):
  AssertEqual
  \ [
  \   {
  \     'lnum': 2,
  \     'text': 'Possible unused method: image_tags',
  \     'type': 'W',
  \   },
  \   {
  \     'lnum': 7,
  \     'text': 'Possible unused method: not_deleted',
  \     'type': 'W',
  \   }
  \ ],
  \ ale_linters#ruby#debride#HandleOutput(0, [
  \   'These methods MIGHT not be called:',
  \   '',
  \   'Image',
  \   '  image_tags                          app/models/image.rb:2',
  \   '  not_deleted                         app/models/image.rb:7'
  \])