X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/0ee596c5c5e11fc79598407eaf22f83d279f7e9e..5a4872f466ebd76ddd532bdf2798554421c53df4:/.vim/bundle/ale/test/linter/test_nix_deadnix.vader diff --git a/.vim/bundle/ale/test/linter/test_nix_deadnix.vader b/.vim/bundle/ale/test/linter/test_nix_deadnix.vader new file mode 100644 index 00000000..90416302 --- /dev/null +++ b/.vim/bundle/ale/test/linter/test_nix_deadnix.vader @@ -0,0 +1,19 @@ +Before: + call ale#assert#SetUpLinterTest('nix', 'deadnix') + +After: + call ale#assert#TearDownLinterTest() + +Execute(The deadnix command should be correct): + AssertLinter 'deadnix', ale#Escape('deadnix') . ' -o json -- %t' + +Execute(Additional deadnix options should be configurable): + let g:ale_nix_deadnix_options = '--foobar' + + AssertLinter 'deadnix', + \ ale#Escape('deadnix') . ' -o json --foobar -- %t' + +Execute(The deadnix command should be configurable): + let g:ale_nix_deadnix_executable = 'foo/bar' + + AssertLinter 'foo/bar', ale#Escape('foo/bar') . ' -o json -- %t'