summaryrefslogtreecommitdiff
path: root/test/handler/test_rails_best_practices_handler.vader
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-09-11 22:25:15 +0100
committerw0rp <devw0rp@gmail.com>2017-09-11 22:25:15 +0100
commita7614d950208a004cb174e79e55eb4fdc988c24e (patch)
tree174c9469af814aa66c586a9393ac3a6303c22c71 /test/handler/test_rails_best_practices_handler.vader
parent8eb99c3cec582d15b32cc0741952fb41b504b0da (diff)
downloadale-a7614d950208a004cb174e79e55eb4fdc988c24e.zip
Get more tests to pass on Windows
Diffstat (limited to 'test/handler/test_rails_best_practices_handler.vader')
-rw-r--r--test/handler/test_rails_best_practices_handler.vader4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/handler/test_rails_best_practices_handler.vader b/test/handler/test_rails_best_practices_handler.vader
index 11875cbd..9875e977 100644
--- a/test/handler/test_rails_best_practices_handler.vader
+++ b/test/handler/test_rails_best_practices_handler.vader
@@ -29,11 +29,11 @@ Execute(The rails_best_practices handler should parse JSON correctly):
\ '{',
\ '"message": "use local variable",',
\ '"line_number": "5",',
- \ '"filename": "' . g:dir . '/ruby_fixtures/valid_rails_app/app/models/thing.rb"',
+ \ printf('"filename": "%s"', substitute(expand('%:p'), '\\', '\\\\', 'g')),
\ '},{',
\ '"message": "other advice",',
\ '"line_number": "10",',
- \ '"filename": "' . g:dir . '/ruby_fixtures/valid_rails_app/app/models/thing.rb"',
+ \ printf('"filename": "%s"', substitute(expand('%:p'), '\\', '\\\\', 'g')),
\ '}',
\ ']'
\ ])