lib/cucumber/js_support/js_snippets.rb in cucumber-1.2.5 vs lib/cucumber/js_support/js_snippets.rb in cucumber-1.3.0

- old
+ new

@@ -2,10 +2,10 @@ module JsSupport module JsSnippets PARAM_PATTERN = /"(.*?)"/ ESCAPED_PARAM_PATTERN = '"([^\\"]*)"' - def snippet_text(code_keyword, step_name, multiline_arg_class) + def snippet_text(code_keyword, step_name, multiline_arg_class, snippet_type) escaped = Regexp.escape(step_name).gsub('\ ', ' ').gsub('/', '\/') escaped = escaped.gsub(PARAM_PATTERN, ESCAPED_PARAM_PATTERN) n = 0 block_args = escaped.scan(ESCAPED_PARAM_PATTERN).map do |a|