lib/cucumber/rb_support/rb_world.rb in cucumber-2.0.0.rc.4 vs lib/cucumber/rb_support/rb_world.rb in cucumber-2.0.0.rc.5

- old
+ new

@@ -35,21 +35,21 @@ # step "the email should contain:", "Dear sir,\nYou've won a prize!\n" # @param [String] name The name of the step # @param [String,Cucumber::Ast::DocString,Cucumber::Ast::Table] multiline_argument def step(name, raw_multiline_arg=nil) location = Core::Ast::Location.of_caller - @__cucumber_runtime.invoke(name, MultilineArgument.from(raw_multiline_arg, location)) + @__cucumber_runtime.invoke_dynamic_step(name, MultilineArgument.from(raw_multiline_arg, location)) end # Run a snippet of Gherkin # @example # steps %{ # Given the user "Susan" exists # And I am logged in as "Susan" # } # @param [String] steps_text The Gherkin snippet to run def steps(steps_text) - @__cucumber_runtime.invoke_steps(steps_text, @__natural_language, caller[0]) + @__cucumber_runtime.invoke_dynamic_steps(steps_text, @__natural_language, caller[0]) end # Parse Gherkin into a {Cucumber::Ast::Table} object. # # Useful in conjunction with the #step method.