summaryrefslogtreecommitdiff
path: root/test/command_callback
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2017-07-11 23:13:28 +0100
committerGitHub <noreply@github.com>2017-07-11 23:13:28 +0100
commita96cc92edfb4deced6154857c384ad943d81bc74 (patch)
treefd1ee0c16c38b4c4327af96daf45f838790fb97f /test/command_callback
parent7b73204f25dd7778e765009bff05d85c90b5f534 (diff)
parent5c7b55edec8ff3c400d429436c1dc68037eebbb0 (diff)
downloadale-a96cc92edfb4deced6154857c384ad943d81bc74.zip
Merge pull request #756 from svanharmelen/b-gometalinter
Make gometalinter work again
Diffstat (limited to 'test/command_callback')
-rw-r--r--test/command_callback/test_gometalinter_command_callback.vader6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/command_callback/test_gometalinter_command_callback.vader b/test/command_callback/test_gometalinter_command_callback.vader
index 24c85aba..f1b4e9f0 100644
--- a/test/command_callback/test_gometalinter_command_callback.vader
+++ b/test/command_callback/test_gometalinter_command_callback.vader
@@ -22,7 +22,7 @@ Execute(The gometalinter callback should return the right defaults):
\ ale_linters#go#gometalinter#GetExecutable(bufnr(''))
AssertEqual
\ ale#Escape('gometalinter')
- \ . ' --include=''^' . expand('%:p') . '.*$'''
+ \ . ' --include=' . ale#Escape(expand('%'))
\ . ' ' . ale#Escape(getcwd()),
\ ale_linters#go#gometalinter#GetCommand(bufnr(''))
@@ -34,7 +34,7 @@ Execute(The gometalinter callback should use a configured executable):
\ ale_linters#go#gometalinter#GetExecutable(bufnr(''))
AssertEqual
\ ale#Escape('something else')
- \ . ' --include=''^' . expand('%:p') . '.*$'''
+ \ . ' --include=' . ale#Escape(expand('%'))
\ . ' ' . ale#Escape(getcwd()),
\ ale_linters#go#gometalinter#GetCommand(bufnr(''))
@@ -43,7 +43,7 @@ Execute(The gometalinter callback should use configured options):
AssertEqual
\ ale#Escape('gometalinter')
- \ . ' --include=''^' . expand('%:p') . '.*$'''
+ \ . ' --include=' . ale#Escape(expand('%'))
\ . ' --foobar'
\ . ' ' . ale#Escape(getcwd()),
\ ale_linters#go#gometalinter#GetCommand(bufnr(''))