From b71f654ae7e31eb87b9d0dbfd33ec46ca0ca1577 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Mon, 18 Feb 2013 15:24:29 -0500 Subject: [PATCH] break out standard wip opts for reusability --- lib/cuke-pack/profiles.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/cuke-pack/profiles.rb b/lib/cuke-pack/profiles.rb index 9e16cec..4a14f04 100644 --- a/lib/cuke-pack/profiles.rb +++ b/lib/cuke-pack/profiles.rb @@ -15,12 +15,14 @@ module CukePack end end + standard_wip_opts = %{#{std_opts} --tags @wip} + if 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}} else - wip_opts = %{#{std_opts} --tags @wip features} + wip_opts = %{#{standard_wip_opts} features} end headless_driver = ENV['DRIVER'] || 'poltergeist'