test_ruby_handler.vader
1 Before: 2 runtime ale_linters/ruby/ruby.vim 3 4 After: 5 call ale#linter#Reset() 6 7 Execute(The ruby handler should parse lines correctly and add the column if it can): 8 " Point Error 9 " Warning 10 " Line Error 11 AssertEqual 12 \ [ 13 \ { 14 \ 'lnum': 6, 15 \ 'col': 13, 16 \ 'type': 'E', 17 \ 'text': 'syntax error, unexpected '';''' 18 \ }, 19 \ { 20 \ 'lnum': 9, 21 \ 'col': 0, 22 \ 'type': 'W', 23 \ 'text': 'warning: statement not reached' 24 \ }, 25 \ { 26 \ 'lnum': 12, 27 \ 'col': 0, 28 \ 'type': 'E', 29 \ 'text': 'syntax error, unexpected end-of-input, expecting keyword_end' 30 \ } 31 \ ], 32 \ ale#handlers#ruby#HandleSyntaxErrors(255, [ 33 \ "test.rb:6: syntax error, unexpected ';'", 34 \ " t = ;", 35 \ " ^", 36 \ "test.rb:9: warning: statement not reached", 37 \ "test.rb:12: syntax error, unexpected end-of-input, expecting keyword_end", 38 \ ])