break out standard wip opts for reusability

This commit is contained in:
John Bintz 2013-02-18 15:24:29 -05:00
parent b9a04a0052
commit b71f654ae7
1 changed files with 3 additions and 1 deletions

View File

@ -15,12 +15,14 @@ module CukePack
end end
end end
standard_wip_opts = %{#{std_opts} --tags @wip}
if in_progress if in_progress
File.open(rerun_file, 'wb') { |fh| fh.print in_progress } File.open(rerun_file, 'wb') { |fh| fh.print in_progress }
wip_opts = %{RERUN_FILE=#{rerun_file} RUN_INPROGRESS=#{in_progress_file} #{std_opts} @#{rerun_file}} wip_opts = %{RERUN_FILE=#{rerun_file} RUN_INPROGRESS=#{in_progress_file} #{std_opts} @#{rerun_file}}
else else
wip_opts = %{#{std_opts} --tags @wip features} wip_opts = %{#{standard_wip_opts} features}
end end
headless_driver = ENV['DRIVER'] || 'poltergeist' headless_driver = ENV['DRIVER'] || 'poltergeist'