Skip to content

Commit

Permalink
A few tweaks to the test keybindings.
Browse files Browse the repository at this point in the history
  • Loading branch information
myronmarston committed Nov 18, 2011
1 parent dad2ff6 commit a75e245
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vimrc.local
Expand Up @@ -50,7 +50,7 @@ function! RunTests(filename)
" Write the file and run tests for the given filename
:w
:silent !echo;echo;echo;echo;echo
exec ":!bundle exec rspec " . a:filename
exec ":!time rspec " . a:filename
endfunction

function! SetTestFile()
Expand Down Expand Up @@ -81,9 +81,9 @@ function! RunNearestTest()
endfunction

" Run this file
map <leader>t :call RunTestFile()<cr>
map <leader>m :call RunTestFile()<cr>
" Run only the example under the cursor
map <leader>T :call RunNearestTest()<cr>
map <leader>M :call RunNearestTest()<cr>
" Run all test files
map <leader>a :call RunTests('spec')<cr>

0 comments on commit a75e245

Please sign in to comment.