summaryrefslogtreecommitdiff
path: root/test/command_callback/test_proto_command_callback.vader
diff options
context:
space:
mode:
Diffstat (limited to 'test/command_callback/test_proto_command_callback.vader')
-rw-r--r--test/command_callback/test_proto_command_callback.vader16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/command_callback/test_proto_command_callback.vader b/test/command_callback/test_proto_command_callback.vader
new file mode 100644
index 00000000..2730bb84
--- /dev/null
+++ b/test/command_callback/test_proto_command_callback.vader
@@ -0,0 +1,16 @@
+Before:
+ call ale#test#SetDirectory('/testplugin/test/command_callback')
+ call ale#test#SetFilename('test.proto')
+
+After:
+ Restore
+
+ call ale#test#RestoreDirectory()
+ call ale#linter#Reset()
+
+Execute(The default command should be correct):
+
+ AssertEqual
+ \ 'protoc' . ' -I ' . ale#Escape(getcwd()) . ' --lint_out=. ' . '%s',
+ \ ale_linters#proto#protoc_gen_lint#GetCommand(bufnr(''))
+