]> git.madduck.net Git - etc/vim.git/blob - .vim/bundle/ale/test/handler/test_drafter_handler.vader

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Do not set EDITOR/VISUAL for shell
[etc/vim.git] / .vim / bundle / ale / test / handler / test_drafter_handler.vader
1 Before:
2   runtime! ale_linters/apiblueprint/drafter.vim
3
4 After:
5   call ale#linter#Reset()
6
7 Execute(drafter handler should handle errors output):
8   AssertEqual
9   \ [
10   \   {
11   \     'lnum': 25,
12   \     'col': 3,
13   \     'text': "unable to parse response signature, expected 'response [<HTTP status code>] [(<media type>)]'",
14   \     'type': "W",
15   \   },
16   \   {
17   \     'lnum': 25,
18   \     'col': 3,
19   \     'text': "missing response HTTP status code, assuming 'Response 200'",
20   \     'type': "W",
21   \   },
22   \   {
23   \     'lnum': 30,
24   \     'col': 7,
25   \     'end_lnum': 32,
26   \     'end_col': 7,
27   \     'text': "message-body asset is expected to be a pre-formatted code block, separate it by a newline and indent every of its line by 12 spaces or 3 tabs",
28   \     'type': "W",
29   \   },
30   \ ],
31   \ ale_linters#apiblueprint#drafter#HandleErrors(bufnr(''), [
32   \   "",
33   \   "OK.",
34   \   "warning: (3)  unable to parse response signature, expected 'response [<HTTP status code>] [(<media type>)]'; line 25, column 3 - line 25, column 29",
35   \   "warning: (6)  missing response HTTP status code, assuming 'Response 200'; line 25, column 3 - line 25, column 29",
36   \   "warning: (10)  message-body asset is expected to be a pre-formatted code block, separate it by a newline and indent every of its line by 12 spaces or 3 tabs; line 30, column 7 - line 30, column 11; line 31, column 6 - line 31, column 7; line 32, column 6 - line 32, column 7"
37   \ ])