diff options
author | Ian Shipman <ics.github@gambolingpangolin.com> | 2019-04-17 08:26:09 -0500 |
---|---|---|
committer | w0rp <w0rp@users.noreply.github.com> | 2019-04-17 14:26:09 +0100 |
commit | 2eb68f6d23f51c33f3d64a15172c869e71d7829b (patch) | |
tree | f7fc87ffc40668159c21f5d1261a82bbb07163eb /test/command_callback | |
parent | 104980e40bf2d2fdd100c04aba73d5c1ad2660ab (diff) | |
download | ale-2eb68f6d23f51c33f3d64a15172c869e71d7829b.zip |
#1791 Set the working directory for cabal and stack
Diffstat (limited to 'test/command_callback')
-rw-r--r-- | test/command_callback/test_haskell_cabal_ghc_command_callbacks.vader | 4 | ||||
-rw-r--r-- | test/command_callback/test_haskell_stack_ghc_command_callback.vader | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/test/command_callback/test_haskell_cabal_ghc_command_callbacks.vader b/test/command_callback/test_haskell_cabal_ghc_command_callbacks.vader index 650aefa3..9e3712d6 100644 --- a/test/command_callback/test_haskell_cabal_ghc_command_callbacks.vader +++ b/test/command_callback/test_haskell_cabal_ghc_command_callbacks.vader @@ -13,11 +13,11 @@ After: Execute(The options should be used in the command): AssertEqual - \ 'cabal exec -- ghc -fno-code -v0 %t', + \ ale#path#BufferCdString(bufnr('')) . 'cabal exec -- ghc -fno-code -v0 %t', \ ale_linters#haskell#cabal_ghc#GetCommand(bufnr('')) let b:ale_haskell_cabal_ghc_options = 'foobar' AssertEqual - \ 'cabal exec -- ghc foobar %t', + \ ale#path#BufferCdString(bufnr('')) . 'cabal exec -- ghc foobar %t', \ ale_linters#haskell#cabal_ghc#GetCommand(bufnr('')) diff --git a/test/command_callback/test_haskell_stack_ghc_command_callback.vader b/test/command_callback/test_haskell_stack_ghc_command_callback.vader index f58f8b5f..aa13fb2b 100644 --- a/test/command_callback/test_haskell_stack_ghc_command_callback.vader +++ b/test/command_callback/test_haskell_stack_ghc_command_callback.vader @@ -10,8 +10,8 @@ Execute(The linter should not be executed when there's no stack.yaml file): Execute(The linter should be executed when there is a stack.yaml file): call ale#test#SetFilename('stack_ghc_paths/test.hs') - AssertLinter 'stack', 'stack ghc -- -fno-code -v0 %t' + AssertLinter 'stack', ale#path#BufferCdString(bufnr('')) . 'stack ghc -- -fno-code -v0 %t' let b:ale_haskell_stack_ghc_options = 'foobar' - AssertLinter 'stack', 'stack ghc -- foobar %t' + AssertLinter 'stack', ale#path#BufferCdString(bufnr('')) . 'stack ghc -- foobar %t' |