Skip to content

Commit b9c76a1

Browse files
committed
Allow "testrb" as a compiler
1 parent 50e6aff commit b9c76a1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

autoload/rails.vim

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1664,7 +1664,9 @@ function! s:readable_runner_command(bang, count, arg) dict abort
16641664
endif
16651665

16661666
let compiler = get(file.projected('compiler'), 0, compiler)
1667-
if empty(findfile('compiler/'.compiler.'.vim', escape(&rtp, ' ')))
1667+
if compiler ==# 'testrb'
1668+
let compiler = 'rubyunit'
1669+
elseif empty(findfile('compiler/'.compiler.'.vim', escape(&rtp, ' ')))
16681670
let compiler = 'ruby'
16691671
endif
16701672

0 commit comments

Comments
 (0)