lib/scenario.rb in features-0.2.1 vs lib/scenario.rb in features-0.3.0

- old
+ new

@@ -60,10 +60,10 @@ lines = body.split("\n") new_lines = [] step = "" for line in lines if line =~ follow_up_line_exp - args = line.sub(/^\s*#{follow_up_keyword}\s*/, "").split("|").reject {|arg| arg =~ /\A\s*\Z/ }.map {|arg| "'" + arg + "'"} + args = line.sub(/^\s*#{follow_up_keyword}\s*/, "").split("|").reject {|arg| arg =~ /\A\s*\Z/ }.map {|arg| "'" + arg.strip + "'"} arr = step.split("'").reject {|elt| elt =~ /\A\s*\Z/ } offset = (step =~ /\A\s*'/) ? 0 : 1 new_step = "" arr.each_with_index do |elt, index| \ No newline at end of file