Permalink
Browse files

Add support for running turnip based features

  • Loading branch information...
1 parent 7fb0eed commit ed157ac01bcf2687e9b38c134239a0de20dea7b9 @martinisoft martinisoft committed Jan 20, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 plugin/turbux.vim
View
@@ -28,7 +28,11 @@ function! s:prefix_for_test(file)
elseif a:file =~# '_test.rb$'
return "ruby -Itest "
elseif a:file =~# '.feature$'
- return "cucumber "
+ if a:file =~# 'spec/'
+ return "rspec "
+ else
+ return "cucumber "
+ endif
endif
return ''
endfunction

0 comments on commit ed157ac

Please sign in to comment.