Skip to content

Instantly share code, notes, and snippets.

@amatsuda
amatsuda / rspec.vim
Created July 31, 2009 11:00 — forked from moro/rspec.vim
function! s:RunRspec (opts)
let rails_spec_path_re = '\<spec/\(models\|controllers\|views\|helpers\)/.*_spec\.rb$'
if( expand('%') =~ rails_spec_path_re && filereadable('script/spec') )
"let command = '!ruby script/spec '
let spec_command = '!rspec '
if filereadable('tmp/pids/spec_server.pid')
let spec_command = spec_command . ' --drb '
endif
else