lib/cucumber/rb_support/rb_language.rb in cucumber-1.1.9 vs lib/cucumber/rb_support/rb_language.rb in cucumber-1.2.0
- old
+ new
@@ -73,11 +73,11 @@
nil
end
end.compact
end
- ARGUMENT_PATTERNS = ['"([^"]*)"', '(\d+)']
+ ARGUMENT_PATTERNS = ['"(.*?)"', '(\d+)']
def snippet_text(code_keyword, step_name, multiline_arg_class)
snippet_pattern = Regexp.escape(step_name).gsub('\ ', ' ').gsub('/', '\/')
arg_count = 0
ARGUMENT_PATTERNS.each do |pattern|
@@ -108,11 +108,11 @@
def register_rb_transform(regexp, proc)
add_transform(RbTransform.new(self, regexp, proc))
end
- def register_rb_step_definition(regexp, proc)
- step_definition = RbStepDefinition.new(self, regexp, proc)
+ def register_rb_step_definition(regexp, proc_or_sym, options)
+ step_definition = RbStepDefinition.new(self, regexp, proc_or_sym, options)
@step_definitions << step_definition
step_definition
end
def build_rb_world_factory(world_modules, proc)