summaryrefslogtreecommitdiff
path: root/test/command_callback/test_lintr_command_callback.vader
diff options
context:
space:
mode:
authorpaihu <paihu@users.noreply.github.com>2018-10-22 22:59:06 +0900
committerpaihu <paihu@users.noreply.github.com>2018-10-22 22:59:06 +0900
commit2ea83939a5978fbe5f709b7a1ab0212e4a0fae45 (patch)
treea36337505126e553732f5cefbc35d2916700767c /test/command_callback/test_lintr_command_callback.vader
parent0261dd2f51ef0a24719a8fc1464a600f2cce4670 (diff)
downloadale-2ea83939a5978fbe5f709b7a1ab0212e4a0fae45.zip
fix testcase
Diffstat (limited to 'test/command_callback/test_lintr_command_callback.vader')
-rw-r--r--test/command_callback/test_lintr_command_callback.vader6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/command_callback/test_lintr_command_callback.vader b/test/command_callback/test_lintr_command_callback.vader
index 8a0e6c1c..dfb6f17f 100644
--- a/test/command_callback/test_lintr_command_callback.vader
+++ b/test/command_callback/test_lintr_command_callback.vader
@@ -6,7 +6,7 @@ After:
Execute(The default lintr command should be correct):
AssertLinter 'Rscript',
- \ 'cd ' . ale#Escape(getcwd()) . ' && '
+ \ ale#path#CdString(ale#Escape(getcwd()))
\ . 'Rscript --vanilla -e '
\ . ale#Escape('suppressPackageStartupMessages(library(lintr));'
\ . 'lint(cache = FALSE, commandArgs(TRUE), '
@@ -17,7 +17,7 @@ Execute(The lintr options should be configurable):
let b:ale_r_lintr_options = 'with_defaults(object_usage_linter = NULL)'
AssertLinter 'Rscript',
- \ 'cd ' . ale#Escape(getcwd()) . ' && '
+ \ ale#path#CdString(ale#Escape(getcwd()))
\ . 'Rscript --vanilla -e '
\ . ale#Escape('suppressPackageStartupMessages(library(lintr));'
\ . 'lint(cache = FALSE, commandArgs(TRUE), '
@@ -28,7 +28,7 @@ Execute(If the lint_package flag is set, lintr::lint_package should be called):
let b:ale_r_lintr_lint_package = 1
AssertLinter 'Rscript',
- \ 'cd ' . ale#Escape(getcwd()) . ' && '
+ \ ale#path#CdString(ale#Escape(getcwd()))
\ . 'Rscript --vanilla -e '
\ . ale#Escape('suppressPackageStartupMessages(library(lintr));'
\ . 'lint_package(cache = FALSE, '