" Run ruby test for current file
nnoremap <localleader>mt :call VimuxRunCommand("clear; ruby -I 'lib:test' " . bufname("%"))<cr>

" Run ruby test for current file
nnoremap <leader>mt :call VimuxRunCommand("clear; ruby -I 'lib:test' " . bufname("%"))<cr>

Use leader to run tests
vim: Use leader to run tests

Even though the underlying command will change based on the file type,
it will still run a test

jdlehman/dotfiles,jdlehman/dotfiles