Created
January 20, 2010 23:40
-
-
Save chrismcg/282423 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function! Run_shitty_tests | |
silent exe "!truncate log/test.log" | |
let old_make = &makeprg | |
let test_command = "ruby -I <some libs> " | |
let &makeprg = test_command.expand("%") | |
exe "make!" | |
let &makeprg = old_make | |
endfunction | |
nnoremap <C-c>c :call Run_shitty_tests<cr> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment