summaryrefslogtreecommitdiff
path: root/test/command_callback/test_gometalinter_command_callback.vader
diff options
context:
space:
mode:
authorSander van Harmelen <sander@xanzy.io>2017-07-11 16:52:18 +0200
committerSander van Harmelen <sander@xanzy.io>2017-07-11 17:13:04 +0200
commit5c7b55edec8ff3c400d429436c1dc68037eebbb0 (patch)
tree5ee3aab614ebca0556ebc4cc8cbfe76557906303 /test/command_callback/test_gometalinter_command_callback.vader
parent768f761017e4d67d8724684df874006d5b04147d (diff)
downloadale-5c7b55edec8ff3c400d429436c1dc68037eebbb0.zip
Make gometalinter work again
They changed their logic to use related paths instead of absoluut paths (see [here](https://github.com/alecthomas/gometalinter/commit/a04df08be5899be3c7ad69aa379858dcb660c709#diff-04424ed7c660c10495a54e8d11be89eaR253)) This fixes the linter by also using relative paths…
Diffstat (limited to 'test/command_callback/test_gometalinter_command_callback.vader')
-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(''))