features/step_definitions/remi_step.rb in remi-0.2.31 vs features/step_definitions/remi_step.rb in remi-0.2.32
- old
+ new
@@ -332,9 +332,10 @@
### Transforms
Then /^the target field '([^']+)' is a concatenation of the source fields '(.+)', delimited by "([^"]*)"$/ do |target_field, source_field_list, delimiter|
+ delimiter = delimiter.gsub(/(\\n|\\t)/, '\n' => "\n", '\t' => "t" )
source_fields = "'#{source_field_list}'".gsub(' and ', ', ').split(',').map do |field_with_quotes|
full_field_name = field_with_quotes.match(/'(.+)'/)[1]
source_name, field_name = @brt.sources.parse_full_field(full_field_name)
{ full_field_name: full_field_name, source: source_name, field: field_name }