From 883daf98e175d6c5e33acd40ca6bcdee981e3d00 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Mon, 21 Apr 2014 15:47:42 -0400 Subject: [PATCH] another dumb fix --- lib/cuke-pack/support/in_progress.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/cuke-pack/support/in_progress.rb b/lib/cuke-pack/support/in_progress.rb index 5a1d198..93c5a6b 100644 --- a/lib/cuke-pack/support/in_progress.rb +++ b/lib/cuke-pack/support/in_progress.rb @@ -12,12 +12,16 @@ After do |s| if ENV['INPROGRESS'] begin source = s + if source.respond_to?(:scenario_outline) source = source.scenario_outline + line = source.file_colon_line.gsub(/^.*\:/, '') + else + line = source.line.to_s end if source.respond_to?(:feature) - in_progress << source.feature.file_colon_line.gsub(/\:\d+/, ":" + source.line.to_s) + in_progress << source.feature.file_colon_line.gsub(/\:\d+/, ":" + line) end rescue => e puts e.message