Skip to content

Commit

Permalink
Don't use DRB by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabe Berke-Williams committed Jun 18, 2012
1 parent 9cc56bf commit 09417b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vim/test_runners.vim
Expand Up @@ -4,14 +4,14 @@ nnoremap <Leader>a :call RunCurrentTest()<CR>
nnoremap <Leader>l :call RunCurrentLineInTest()<CR> nnoremap <Leader>l :call RunCurrentLineInTest()<CR>
function! CorrectTestRunner() function! CorrectTestRunner()
let rspec="rspec --drb --color" let rspec="rspec --color"
if match(expand('%'), '_spec\.rb$') != -1 if match(expand('%'), '_spec\.rb$') != -1
return rspec return rspec
elseif match(expand('%:p'), 'spec/\(acceptance\|features\)/') != -1 elseif match(expand('%:p'), 'spec/\(acceptance\|features\)/') != -1
" Turnip " Turnip
return rspec . " -r turnip" return rspec . " -r turnip"
elseif match(expand('%'), '\.feature$') != -1 elseif match(expand('%'), '\.feature$') != -1
return "cucumber --drb" return "cucumber"
elseif match(expand('%'), '_test\.rb$') != -1 elseif match(expand('%'), '_test\.rb$') != -1
" TestUnit " TestUnit
return "ruby -Itest" return "ruby -Itest"
Expand Down

0 comments on commit 09417b5

Please sign in to comment.