diff options
author | Matteo Centenaro <bugant@gmail.com> | 2018-10-10 18:19:47 +0200 |
---|---|---|
committer | w0rp <w0rp@users.noreply.github.com> | 2018-10-10 17:19:47 +0100 |
commit | bf1ac8e822835ac2b0e1173e1e014c773b8e51a6 (patch) | |
tree | c07810d24da1049e22910538555d4a5db2e941b3 /test/command_callback/test_elixir_mix_command_callbacks.vader | |
parent | ea49cc759f7254c03a3515371ffad23e6b326d07 (diff) | |
download | ale-bf1ac8e822835ac2b0e1173e1e014c773b8e51a6.zip |
FIX: use mix from the project root directory (#1954)
* FIX: use mix from the project root directory
* Move find root project function to autoloaded handlers
* add tests for #ale#handlers#elixr#FindMixProjectRoot
Diffstat (limited to 'test/command_callback/test_elixir_mix_command_callbacks.vader')
-rw-r--r-- | test/command_callback/test_elixir_mix_command_callbacks.vader | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/command_callback/test_elixir_mix_command_callbacks.vader b/test/command_callback/test_elixir_mix_command_callbacks.vader index 18fb13ed..9315a850 100644 --- a/test/command_callback/test_elixir_mix_command_callbacks.vader +++ b/test/command_callback/test_elixir_mix_command_callbacks.vader @@ -17,3 +17,10 @@ Execute(The default mix command should be correct): \ ale#path#CdString(ale#path#Simplify(g:dir . '/mix_paths/wrapped_project')) \ . g:env_prefix \ . 'mix compile %s' + +Execute(The FindMixProjectRoot should detect the project root directory via mix.exs): + silent execute 'file ' . fnameescape(g:dir . '/elixir_paths/mix_project/lib/app.ex') + + AssertEqual + \ ale#path#Simplify(g:dir . '/elixir_paths/mix_project'), + \ ale#handlers#elixir#FindMixProjectRoot(bufnr('')) |