All steps are run in the context of an object that extends this module.
# File lib/cucumber/rb_support/rb_world.rb, line 41
41: def announce(announcement)
42: @__cucumber_step_mother.announce(announcement)
43: end
Prints out the world class, followed by all included modules.
# File lib/cucumber/rb_support/rb_world.rb, line 56
56: def announce_world
57: announce "WORLD:\n #{self.class}"
58: world = self
59: (class << self; self; end).instance_eval do
60: world.announce " #{included_modules.join("\n ")}"
61: end
62: end
See StepMother#ask
# File lib/cucumber/rb_support/rb_world.rb, line 46
46: def ask(question, timeout_seconds=60)
47: @__cucumber_step_mother.ask(question, timeout_seconds)
48: end
See StepMother#embed
# File lib/cucumber/rb_support/rb_world.rb, line 51
51: def embed(file, mime_type)
52: @__cucumber_step_mother.embed(file, mime_type)
53: end
Mark the matched step as pending.
# File lib/cucumber/rb_support/rb_world.rb, line 65
65: def pending(message = "TODO")
66: if block_given?
67: begin
68: yield
69: rescue Exception => e
70: raise Pending.new(message)
71: end
72: raise Pending.new("Expected pending '#{message}' to fail. No Error was raised. No longer pending?")
73: else
74: raise Pending.new(message)
75: end
76: end
# File lib/cucumber/rb_support/rb_world.rb, line 36
36: def py_string(string_with_triple_quotes, file=nil, line_offset=0)
37: @__cucumber_step_mother.py_string(string_with_triple_quotes, file, line_offset)
38: end
# File lib/cucumber/rb_support/rb_world.rb, line 26
26: def steps(steps_text)
27: @__cucumber_step_mother.invoke_steps(steps_text, @__natural_language, caller[0])
28: end
See StepMother#table
# File lib/cucumber/rb_support/rb_world.rb, line 31
31: def table(text_or_table, file=nil, line_offset=0)
32: @__cucumber_step_mother.table(text_or_table, file, line_offset)
33: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.