Skip to content

Commit

Permalink
Allow user to specify options for cucumber
Browse files Browse the repository at this point in the history
  • Loading branch information
whiny-nil committed Sep 9, 2013
1 parent 00f0d4d commit 1da37ec
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion autoload/vroom.vim
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ if !exists("g:vroom_cucumber_path")
let g:vroom_cucumber_path = './script/cucumber '
endif

if !exists("g:vroom_cucumber_options")
let g:vroom_cucumber_options = ''
endif

if !exists("g:vroom_detect_spec_helper")
let g:vroom_detect_spec_helper = 0
endif
Expand Down Expand Up @@ -163,7 +167,7 @@ function s:DetermineRunner(filename)
if match(a:filename, '_spec.rb') != -1
return s:test_runner_prefix . g:vroom_spec_command . s:color_flag
elseif match(a:filename, '\.feature') != -1
return s:test_runner_prefix . g:vroom_cucumber_path . s:color_flag
return s:test_runner_prefix . g:vroom_cucumber_path . g:vroom_cucumber_options . s:color_flag
elseif match(a:filename, "_test.rb") != -1
return s:test_runner_prefix . g:vroom_test_unit_command
end
Expand Down

0 comments on commit 1da37ec

Please sign in to comment.