Skip to content
Browse files

Support test/unit files that being with 'test_'

  • Loading branch information...
1 parent 138d985 commit bb49e5487e9c4dc6b3ce0094ebc8027a3f1e50cf @jgdavey committed Mar 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugin/turbux.vim
View
2 plugin/turbux.vim
@@ -25,7 +25,7 @@ endfunction
function! s:prefix_for_test(file)
if a:file =~# '_spec.rb$'
return "rspec "
- elseif a:file =~# '_test.rb$'
+ elseif a:file =~# '\(\<test_.*\|_test\)\.rb$'
return "ruby -Itest "
elseif a:file =~# '.feature$'
if a:file =~# '\<spec/'

0 comments on commit bb49e54

Please sign in to comment.
Something went wrong with that request. Please try again.