summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAliou Diallo <code@aliou.me>2017-11-14 17:50:15 +0100
committerAliou Diallo <code@aliou.me>2017-11-14 17:50:15 +0100
commit425482116ed4f8baa9e568be50968f412bd5ca0f (patch)
tree48bb2532094fb268be66f36c14c547dd39d95bda /test
parent16e7dc2371f908204e5191c0e9d55626352097af (diff)
downloadale-425482116ed4f8baa9e568be50968f412bd5ca0f.zip
#852 - Capture error codes for Rubocop
Diffstat (limited to 'test')
-rw-r--r--test/handler/test_rubocop_handler.vader12
1 files changed, 8 insertions, 4 deletions
diff --git a/test/handler/test_rubocop_handler.vader b/test/handler/test_rubocop_handler.vader
index 4d3bbe29..ef0137d6 100644
--- a/test/handler/test_rubocop_handler.vader
+++ b/test/handler/test_rubocop_handler.vader
@@ -12,28 +12,32 @@ Execute(The rubocop handler should parse lines correctly):
\ 'lnum': 83,
\ 'col': 29,
\ 'end_col': 35,
- \ 'text': 'Prefer single-quoted strings... [Style/SomeCop]',
+ \ 'text': 'Prefer single-quoted strings...',
+ \ 'code': 'Style/SomeCop',
\ 'type': 'W',
\ },
\ {
\ 'lnum': 12,
\ 'col': 2,
\ 'end_col': 2,
- \ 'text': 'Some error [Style/SomeOtherCop]',
+ \ 'text': 'Some error',
+ \ 'code': 'Style/SomeOtherCop',
\ 'type': 'E',
\ },
\ {
\ 'lnum': 10,
\ 'col': 5,
\ 'end_col': 12,
- \ 'text': 'Regular warning [Style/WarningCop]',
+ \ 'text': 'Regular warning',
+ \ 'code': 'Style/WarningCop',
\ 'type': 'W',
\ },
\ {
\ 'lnum': 11,
\ 'col': 1,
\ 'end_col': 1,
- \ 'text': 'Another error [Style/SpaceBeforeBlockBraces]',
+ \ 'text': 'Another error',
+ \ 'code': 'Style/SpaceBeforeBlockBraces',
\ 'type': 'E',
\ },
\ ],