Permalink
Browse files

Support running tests on Rails 5

  • Loading branch information...
1 parent 34b2ae3 commit 8c151f60df0d9dad90b59bcc0c4e1f2a31cacbb4 @tpope committed Dec 20, 2015
Showing with 3 additions and 0 deletions.
  1. +2 −0 autoload/rails.vim
  2. +1 −0 compiler/rails.vim
View
@@ -1390,6 +1390,8 @@ function! s:readable_default_rake_task(...) dict abort
endif
if empty(test)
return '--tasks'
+ elseif test =~# '^test\>' && self.app().has('rails5')
+ return 'test '.s:rquote(with_line)
elseif test =~# '^test\>'
let opts = ''
if test ==# self.name()
View
@@ -33,6 +33,7 @@ CompilerSet errorformat^=
\%\\&%\\s\ %#%m%\\>\ \ %#%f,
\Overwrite%.%#%\\S%\\+\ \ %#%m%\\x1b[0m\ \ %#%f,
\%-GOverwrite%.%#\"h\"%.%#,
+ \%.%#rails\ test\ %f:%l,
\%+GCurrent\ version:%.%#,
\%+G\ %#Status\ %#Migration\ ID%.%#,
\%+G\ The\ fixture\ ID\ for\ %.%#,

0 comments on commit 8c151f6

Please sign in to comment.