From a855fd079587f42ff345124588a00f1722437488 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Fri, 18 Apr 2014 10:53:40 -0400 Subject: [PATCH] in progress fix for scenario outlines --- lib/cuke-pack/support/in_progress.rb | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/lib/cuke-pack/support/in_progress.rb b/lib/cuke-pack/support/in_progress.rb index 53daea7..96be5bb 100644 --- a/lib/cuke-pack/support/in_progress.rb +++ b/lib/cuke-pack/support/in_progress.rb @@ -11,7 +11,16 @@ After do |s| if s.failed? || s.status == :pending if ENV['INPROGRESS'] begin - in_progress << s.feature.file_colon_line.gsub(/\:\d+/, ":" + s.line.to_s) + source = s + if source.respond_to?(:scenario_outline) + source = source.scenario_outline + end + + if source.respond_to?(:feature) + feature = source.feature + + in_progress << feature.file_colon_line.gsub(/\:\d+/, ":" + feature.line.to_s) + end rescue => e puts e.message puts e.backtrace.join("\n")