Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #8 from prognostikos/master

Support for configurable path to cucumber
  • Loading branch information...
commit 7058a85ea60eb672ee46c14972ad5ddf48f96d07 2 parents 7b83254 + f99e02b
@skalnik authored
Showing with 10 additions and 1 deletion.
  1. +5 −1 autoload/vroom.vim
  2. +5 −0 doc/vroom.txt
View
6 autoload/vroom.vim
@@ -16,6 +16,10 @@ if !exists("g:vroom_write_all")
let g:vroom_write_all = 0
endif
+if !exists("g:vroom_cucumber_path")
+ let g:vroom_cucumber_path = './script/cucumber '
+endif
+
" Public: Run current test file, or last test run
function vroom#RunTestFile()
call s:RunTestFile()
@@ -66,7 +70,7 @@ function s:RunTests(filename)
if match(a:filename, '_spec.rb') != -1
exec ":!" . s:bundle_exec ."rspec " . a:filename . s:color_flag
elseif match(a:filename, '\.feature') != -1
- exec ":!" . s:bundle_exec ."./script/cucumber " . a:filename . s:color_flag
+ exec ":!" . s:bundle_exec .g:vroom_cucumber_path . a:filename . s:color_flag
elseif match(a:filename, "_test.rb") != -1
exec ":!" . s:bundle_exec ."ruby -Itest " . a:filename
end
View
5 doc/vroom.txt
@@ -67,6 +67,11 @@ g:vroom_write_all *vroom_write_all*
Write all file before running tests
Default: 0 (write the current file)
+g:vroom_cucumber_path *vroom_cucumber_path*
+ If set, the path for the executable
+ used for *.feature files.
+ Default: './script/cucumber '
+
===============================================================================
LICENSE *vroom-license*
Please sign in to comment.
Something went wrong with that request. Please try again.