another dumb fix

This commit is contained in:
John Bintz 2014-04-21 15:47:42 -04:00
parent f10c08bf94
commit 883daf98e1
1 changed files with 5 additions and 1 deletions

View File

@ -12,12 +12,16 @@ After do |s|
if ENV['INPROGRESS'] if ENV['INPROGRESS']
begin begin
source = s source = s
if source.respond_to?(:scenario_outline) if source.respond_to?(:scenario_outline)
source = source.scenario_outline source = source.scenario_outline
line = source.file_colon_line.gsub(/^.*\:/, '')
else
line = source.line.to_s
end end
if source.respond_to?(:feature) 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 end
rescue => e rescue => e
puts e.message puts e.message