From d465b7136277d2dbf2b2fd905711eecc3a355475 Mon Sep 17 00:00:00 2001 From: rhysd Date: Tue, 21 Nov 2017 15:41:19 +0900 Subject: redpen: use 'code' key to show validator instead of embedding it into text --- test/handler/test_redpen_handler.vader | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'test/handler/test_redpen_handler.vader') diff --git a/test/handler/test_redpen_handler.vader b/test/handler/test_redpen_handler.vader index 46276144..f28d6923 100644 --- a/test/handler/test_redpen_handler.vader +++ b/test/handler/test_redpen_handler.vader @@ -12,14 +12,16 @@ Execute(redpen handler should handle errors output): \ 'col': 10, \ 'end_lnum': 1, \ 'end_col': 15, - \ 'text': 'Found possibly misspelled word "plugin". (Spelling)', + \ 'text': 'Found possibly misspelled word "plugin".', \ 'type': 'W', + \ 'code': 'Spelling', \ }, \ { \ 'lnum': 1, \ 'col': 1, - \ 'text': 'Found possibly misspelled word "NeoVim". (Spelling)', + \ 'text': 'Found possibly misspelled word "NeoVim".', \ 'type': 'W', + \ 'code': 'Spelling', \ }, \ ], \ ale#handlers#redpen#HandleRedpenOutput(bufnr(''), [ -- cgit v1.2.3