summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorEddie Lebow <elebow@users.noreply.github.com>2019-08-13 01:32:18 -0400
committerEddie Lebow <elebow@users.noreply.github.com>2019-08-13 01:43:27 -0400
commit501af8dd8b0fe41e94698c08d399e6ad3098e234 (patch)
treef2d994356c0f3dd829bee5236a2891fed1ebc7db /test
parent28c93ab1854ef41a46855401cc4addbaf7dfb9d4 (diff)
downloadale-501af8dd8b0fe41e94698c08d399e6ad3098e234.zip
debride: Add debride linter (closes #2471)
Diffstat (limited to 'test')
-rw-r--r--test/handler/test_debride_handler.vader27
1 files changed, 27 insertions, 0 deletions
diff --git a/test/handler/test_debride_handler.vader b/test/handler/test_debride_handler.vader
new file mode 100644
index 00000000..62851468
--- /dev/null
+++ b/test/handler/test_debride_handler.vader
@@ -0,0 +1,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'
+ \])