diff options
author | w0rp <devw0rp@gmail.com> | 2017-12-07 18:47:01 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-12-07 18:47:01 +0000 |
commit | 63ecc8341d308c63781e4f7f81347858777d8c89 (patch) | |
tree | da22e771c4114dbf746f6d0664e382d7459411d5 /test | |
parent | 0e57ca3df3af3f13dc4cad6ade6428b9896466c1 (diff) | |
download | ale-63ecc8341d308c63781e4f7f81347858777d8c89.zip |
Fix #1202 - Do not use --all-targets by default, because it doesn't work some of the time.
Diffstat (limited to 'test')
-rw-r--r-- | test/command_callback/test_cargo_command_callbacks.vader | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/command_callback/test_cargo_command_callbacks.vader b/test/command_callback/test_cargo_command_callbacks.vader index 10535516..65ea5a80 100644 --- a/test/command_callback/test_cargo_command_callbacks.vader +++ b/test/command_callback/test_cargo_command_callbacks.vader @@ -85,32 +85,32 @@ Execute(`cargo build` should be used when g:ale_rust_cargo_use_check is set to 0 AssertEqual '', ale_linters#rust#cargo#VersionCheck(bufnr('')) -Execute(`cargo check --all-targets` should be used when the version is new enough): +Execute(`cargo check` should be used when the version is new enough): AssertEqual - \ 'cargo check --all-targets' . g:suffix, + \ 'cargo check' . g:suffix, \ ale_linters#rust#cargo#GetCommand(bufnr(''), [ \ 'cargo 0.22.0 (3423351a5 2017-10-06)', \ ]) " We should cache the version check AssertEqual - \ 'cargo check --all-targets' . g:suffix, + \ 'cargo check' . g:suffix, \ ale_linters#rust#cargo#GetCommand(bufnr(''), []) AssertEqual '', ale_linters#rust#cargo#VersionCheck(bufnr('')) -Execute(--all-targets should not be used when g:ale_rust_cargo_check_all_targets is set to 0): - let g:ale_rust_cargo_check_all_targets = 0 +Execute(--all-targets should be used when g:ale_rust_cargo_check_all_targets is set to 1): + let g:ale_rust_cargo_check_all_targets = 1 AssertEqual - \ 'cargo check' . g:suffix, + \ 'cargo check --all-targets' . g:suffix, \ ale_linters#rust#cargo#GetCommand(bufnr(''), [ \ 'cargo 0.22.0 (3423351a5 2017-10-06)', \ ]) " We should cache the version check AssertEqual - \ 'cargo check' . g:suffix, + \ 'cargo check --all-targets' . g:suffix, \ ale_linters#rust#cargo#GetCommand(bufnr(''), []) AssertEqual '', ale_linters#rust#cargo#VersionCheck(bufnr('')) |