Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Support both rspec and spec.

  • Loading branch information...
commit 835513bb05f2943726860f7d3d5516cb9d8d8ab5 1 parent e608023
@braintreeps authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 vimrc
View
7 vimrc
@@ -94,7 +94,12 @@ map <Leader>rp :wa<CR> :PromptVimTmuxCommand<CR>
map <Leader>ri :wa<CR> :InspectVimTmuxRunner<CR>
function RunVimuxRspec(args)
- let l:spec_command = "rspec"
+ if system("which rspec > /dev/null; echo $?") == "0\n"
+ let l:spec_command = "rspec"
+ else
+ let l:spec_command = "spec"
+ endif
+
let l:command = "clear && " . l:spec_command . " " . a:args
call RunVimTmuxCommand(l:command)
endfunction
Please sign in to comment.
Something went wrong with that request. Please try again.