فهرست منبع

Fix up rspec command

Andrew Swistak 11 سال پیش
والد
کامیت
f918a78388
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      vimrc

+ 1 - 1
vimrc

@@ -131,7 +131,7 @@ map <silent> <leader>t :call RunCurrentSpecFile()<CR>
 map <silent> <leader>a :call RunAllSpecs()<CR>
 map <silent> <leader>s :call RunNearestSpec()<CR>
 map <silent> <leader>k :call RunLastSpec()<CR>
-let g:rspec_command = "bundle exec spec {spec}"
+let g:rspec_command = "!if command -v rspec >/dev/null 2>&1; then rspec {spec}; else; bundle exec spec {spec}; fi"
 
 """"""""""""""""""""""""""""
 " Ctrl-P Settings