Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/patch-1'
Browse files Browse the repository at this point in the history
* origin/patch-1:
  Added cucumber support for running tests on file/line.
  • Loading branch information
zolrath committed Feb 13, 2012
2 parents 25c730b + 176379b commit 69f5ea7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions plugin/vim-ruby-conque.vim
Expand Up @@ -51,11 +51,21 @@ function! RunRspecCurrentFileConque()
call RunSingleConque(g:ruby_conque_rspec_command . " " . bufname('%') . " --color")
endfunction

function! RunCucumberCurrentLineConque()
call RunSingleConque("cucumber" . " " . bufname('%') . ":" . line('.'))
endfunction

function! RunCucumberCurrentFileConque()
call RunSingleConque("cucumber" . " " . bufname('%'))
endfunction

function! RunRakeConque()
call RunSingleConque("rake")
endfunction

nmap <silent> <Leader>rr :call RunRubyCurrentFileConque()<CR>
nmap <silent> <Leader>ss :call RunRspecCurrentFileConque()<CR>
nmap <silent> <Leader>ll :call RunRspecCurrentLineConque()<CR>
nmap <silent> <Leader>cl :call RunCucumberCurrentLineConque()<CR>
nmap <silent> <Leader>cc :call RunCucumberCurrentFileConque()<CR>
nmap <silent> <Leader>RR :call RunRakeConque()<CR>

0 comments on commit 69f5ea7

Please sign in to comment.