diff options
author | w0rp <w0rp@users.noreply.github.com> | 2019-10-07 19:17:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-07 19:17:55 +0100 |
commit | 32b784219b91a99fb05a78825ce64c5a4f98f253 (patch) | |
tree | a597bd6a3a3d00671c25d976f93dc348b6df6f2e /test/handler | |
parent | a486aa1d24294c5b14c8b2763a3b5ffdc39d0739 (diff) | |
parent | 8aa1578605f88e237f2fc0307f176bd7171eb23e (diff) | |
download | ale-32b784219b91a99fb05a78825ce64c5a4f98f253.zip |
Merge pull request #2694 from elebow/add-ruby-debride
Add ruby debride (closes #2471)
Diffstat (limited to 'test/handler')
-rw-r--r-- | test/handler/test_debride_handler.vader | 27 |
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' + \]) |