diff options
author | w0rp <devw0rp@gmail.com> | 2017-07-26 10:37:37 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-07-26 10:37:37 +0100 |
commit | cd860e3e8d2b8d35920f27279bbd1ec346ac4d62 (patch) | |
tree | 03c63eb3e37d2e2b5761f3bbe3af7b1b0e8e05df /test/util/test_cd_string_commands.vader | |
parent | 86297a7c65eadc5dc7668e129c92316aa0a89898 (diff) | |
download | ale-cd860e3e8d2b8d35920f27279bbd1ec346ac4d62.zip |
#517 Add more code LSP support which makes the tssserver linter behave more like the LSP linters
Diffstat (limited to 'test/util/test_cd_string_commands.vader')
-rw-r--r-- | test/util/test_cd_string_commands.vader | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/util/test_cd_string_commands.vader b/test/util/test_cd_string_commands.vader index b0b6c157..f8a97cb8 100644 --- a/test/util/test_cd_string_commands.vader +++ b/test/util/test_cd_string_commands.vader @@ -1,8 +1,15 @@ Before: silent! cd /testplugin/test/util + let g:dir = getcwd() + +After: + silent execute 'cd ' . fnameescape(g:dir) + unlet! g:dir Execute(CdString should output the correct command string): AssertEqual 'cd ''/foo bar/baz'' && ', ale#path#CdString('/foo bar/baz') Execute(BufferCdString should output the correct command string): - AssertEqual 'cd ' . shellescape(getcwd()) . ' && ', ale#path#BufferCdString(bufnr('')) + call ale#test#SetFilename('foo.txt') + + AssertEqual 'cd ' . shellescape(g:dir) . ' && ', ale#path#BufferCdString(bufnr('')) |