summaryrefslogtreecommitdiff
path: root/test/command_callback
diff options
context:
space:
mode:
authorIan Shipman <ics.github@gambolingpangolin.com>2019-04-17 08:26:09 -0500
committerw0rp <w0rp@users.noreply.github.com>2019-04-17 14:26:09 +0100
commit2eb68f6d23f51c33f3d64a15172c869e71d7829b (patch)
treef7fc87ffc40668159c21f5d1261a82bbb07163eb /test/command_callback
parent104980e40bf2d2fdd100c04aba73d5c1ad2660ab (diff)
downloadale-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.vader4
-rw-r--r--test/command_callback/test_haskell_stack_ghc_command_callback.vader4
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'