lib/cuke_modeler/models/table.rb in cuke_modeler-1.1.0 vs lib/cuke_modeler/models/table.rb in cuke_modeler-1.1.1
- old
+ new
@@ -40,10 +40,10 @@
private
def parse_source(source_text)
- base_file_string = "#{dialect_feature_keyword}:\n#{dialect_scenario_keyword}:\n#{dialect_step_keyword} step\n"
+ base_file_string = "# language: #{Parsing.dialect}\n#{dialect_feature_keyword}:\n#{dialect_scenario_keyword}:\n#{dialect_step_keyword} step\n"
source_text = base_file_string + source_text
parsed_file = Parsing::parse_text(source_text, 'cuke_modeler_stand_alone_table.feature')
parsed_file.first['elements'].first['steps'].first['table']