Skip to content

Commit 8c151f6

Browse files
committed
Support running tests on Rails 5
1 parent 34b2ae3 commit 8c151f6

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

autoload/rails.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1390,6 +1390,8 @@ function! s:readable_default_rake_task(...) dict abort
13901390
endif
13911391
if empty(test)
13921392
return '--tasks'
1393+
elseif test =~# '^test\>' && self.app().has('rails5')
1394+
return 'test '.s:rquote(with_line)
13931395
elseif test =~# '^test\>'
13941396
let opts = ''
13951397
if test ==# self.name()

compiler/rails.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ CompilerSet errorformat^=
3333
\%\\&%\\s\ %#%m%\\>\ \ %#%f,
3434
\Overwrite%.%#%\\S%\\+\ \ %#%m%\\x1b[0m\ \ %#%f,
3535
\%-GOverwrite%.%#\"h\"%.%#,
36+
\%.%#rails\ test\ %f:%l,
3637
\%+GCurrent\ version:%.%#,
3738
\%+G\ %#Status\ %#Migration\ ID%.%#,
3839
\%+G\ The\ fixture\ ID\ for\ %.%#,

0 commit comments

Comments
 (0)