def adapt_scenario!(parsed_test)
      # Removing parsed data for child elements in order to avoid duplicating data
      parsed_test['cuke_modeler_parsing_data'][:scenario][:tags] = nil
      parsed_test['cuke_modeler_parsing_data'][:scenario][:steps] = nil

      parsed_test['type'] = 'Scenario'
      parsed_test['keyword'] = parsed_test[:scenario].delete(:keyword)
      parsed_test['name'] = parsed_test[:scenario].delete(:name)
      parsed_test['description'] = parsed_test[:scenario].delete(:description)
      parsed_test['line'] = parsed_test[:scenario].delete(:location)[:line]

      parsed_test['tags'] = []
      parsed_test[:scenario][:tags].each do |tag|
        adapt_tag!(tag)
      end
      parsed_test['tags'].concat(parsed_test[:scenario].delete(:tags))

      parsed_test['steps'] = []
      parsed_test[:scenario][:steps].each do |step|
        adapt_step!(step)
      end
      parsed_test['steps'].concat(parsed_test[:scenario].delete(:steps))
    end
def adapt_scenario!(parsed_test)
      # Removing parsed data for child elements in order to avoid duplicating data
      parsed_test['cuke_modeler_parsing_data'][:scenario][:tags] = nil
      parsed_test['cuke_modeler_parsing_data'][:scenario][:steps] = nil

      parsed_test['type'] = 'Scenario'
      parsed_test['keyword'] = parsed_test[:scenario].delete(:keyword)
      parsed_test['name'] = parsed_test[:scenario].delete(:name)
      parsed_test['description'] = parsed_test[:scenario].delete(:description)
      parsed_test['line'] = parsed_test[:scenario].delete(:location)[:line]

      parsed_test['tags'] = []
      parsed_test[:scenario][:tags].each do |tag|
        adapt_tag!(tag)
      end
      parsed_test['tags'].concat(parsed_test[:scenario].delete(:tags))

      parsed_test['steps'] = []
      parsed_test[:scenario][:steps].each do |step|
        adapt_step!(step)
      end
      parsed_test['steps'].concat(parsed_test[:scenario].delete(:steps))
    end
Adapts the AST sub-tree that is rooted at the given scenario node.