All steps are run in the context of an object that extends this module.
# File lib/cucumber/rb_support/rb_world.rb, line 41 def announce(announcement) @__cucumber_step_mother.announce(announcement) end
Prints out the world class, followed by all included modules.
# File lib/cucumber/rb_support/rb_world.rb, line 56 def announce_world announce "WORLD:\n #{self.class}" world = self (class << self; self; end).instance_eval do world.announce " #{included_modules.join("\n ")}" end end
See StepMother#ask
# File lib/cucumber/rb_support/rb_world.rb, line 46 def ask(question, timeout_seconds=60) @__cucumber_step_mother.ask(question, timeout_seconds) end
See StepMother#embed
# File lib/cucumber/rb_support/rb_world.rb, line 51 def embed(file, mime_type) @__cucumber_step_mother.embed(file, mime_type) end
Mark the matched step as pending.
# File lib/cucumber/rb_support/rb_world.rb, line 65 def pending(message = "TODO") if block_given? begin yield rescue Exception => e raise Pending.new(message) end raise Pending.new("Expected pending '#{message}' to fail. No Error was raised. No longer pending?") else raise Pending.new(message) end end
# File lib/cucumber/rb_support/rb_world.rb, line 36 def py_string(string_with_triple_quotes, file=nil, line_offset=0) @__cucumber_step_mother.py_string(string_with_triple_quotes, file, line_offset) end
# File lib/cucumber/rb_support/rb_world.rb, line 26 def steps(steps_text) @__cucumber_step_mother.invoke_steps(steps_text, @__natural_language) end
See StepMother#table
# File lib/cucumber/rb_support/rb_world.rb, line 31 def table(text_or_table, file=nil, line_offset=0) @__cucumber_step_mother.table(text_or_table, file, line_offset) end
Generated with the Darkfish Rdoc Generator 2.