another dumb fix
This commit is contained in:
parent
f10c08bf94
commit
883daf98e1
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user