From b14377915b9948454322cd95a86bcc298c03f77a Mon Sep 17 00:00:00 2001 From: w0rp Date: Wed, 15 Nov 2017 17:21:17 +0000 Subject: Clean up tests to stop people copy and pasting the wrong examples --- test/command_callback/test_swaglint_command_callback.vader | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/command_callback/test_swaglint_command_callback.vader') diff --git a/test/command_callback/test_swaglint_command_callback.vader b/test/command_callback/test_swaglint_command_callback.vader index 379aa0cc..0f1d870e 100644 --- a/test/command_callback/test_swaglint_command_callback.vader +++ b/test/command_callback/test_swaglint_command_callback.vader @@ -1,12 +1,14 @@ Before: runtime ale_linters/yaml/swaglint.vim + call ale#test#SetDirectory('/testplugin/test/command_callback') After: - call ale#linter#Reset() let g:ale_yaml_swaglint_executable = 'swaglint' let g:ale_yaml_swaglint_use_global = 0 + call ale#linter#Reset() + Execute(The yaml swaglint command callback should return the correct default string): AssertEqual 'swaglint', \ ale_linters#yaml#swaglint#GetExecutable(bufnr('')) -- cgit v1.2.3