Method: Cucumber::Runtime::SupportCode#invoke_dynamic_steps

Defined in:
lib/cucumber/runtime/support_code.rb

#invoke_dynamic_steps(steps_text, iso_code, _location) ⇒ Object

Invokes a series of steps steps_text. Example:

invoke(%Q{
  Given I have 8 cukes in my belly
  Then I should not be thirsty
})
[View source] [View on GitHub]

61
62
63
64
# File 'lib/cucumber/runtime/support_code.rb', line 61

def invoke_dynamic_steps(steps_text, iso_code, _location)
  parser = Cucumber::Gherkin::StepsParser.new(StepInvoker.new(self), iso_code)
  parser.parse(steps_text)
end