summaryrefslogtreecommitdiff
path: root/test/command_callback/test_govet_command_callback.vader
diff options
context:
space:
mode:
Diffstat (limited to 'test/command_callback/test_govet_command_callback.vader')
-rw-r--r--test/command_callback/test_govet_command_callback.vader14
1 files changed, 3 insertions, 11 deletions
diff --git a/test/command_callback/test_govet_command_callback.vader b/test/command_callback/test_govet_command_callback.vader
index a9b29605..a73118ae 100644
--- a/test/command_callback/test_govet_command_callback.vader
+++ b/test/command_callback/test_govet_command_callback.vader
@@ -1,16 +1,8 @@
Before:
- runtime ale_linters/go/govet.vim
-
- call ale#test#SetDirectory('/testplugin/test/command_callback')
+ call ale#assert#SetUpLinterTest('go', 'govet')
After:
- Restore
-
- call ale#linter#Reset()
- call ale#test#RestoreDirectory()
+ call ale#assert#TearDownLinterTest()
Execute(The default command should be correct):
- AssertEqual
- \ 'cd ' . ale#Escape(expand('%:p:h')) . ' && '
- \ . ' go vet .',
- \ ale_linters#go#govet#GetCommand(bufnr(''))
+ AssertLinter 'go', 'cd ' . ale#Escape(expand('%:p:h')) . ' && go vet .'