Class Index [+]

Quicksearch

Cucumber::RbSupport::RbWorld

All steps are run in the context of an object that extends this module.

Attributes

__cucumber_step_mother[W]
__natural_language[W]

Public Class Methods

alias_adverb(adverb) click to toggle source
   # File lib/cucumber/rb_support/rb_world.rb, line 6
6:         def alias_adverb(adverb)
7:           alias_method adverb, :__cucumber_invoke
8:         end

Public Instance Methods

Transform(arg) click to toggle source

Call a Transform with a string from another Transform definition

    # File lib/cucumber/rb_support/rb_world.rb, line 12
12:       def Transform(arg)
13:         rb = @__cucumber_step_mother.load_programming_language('rb')
14:         rb.execute_transforms([arg]).first
15:       end
announce(announcement) click to toggle source

See StepMother#announce

    # File lib/cucumber/rb_support/rb_world.rb, line 41
41:       def announce(announcement)
42:         @__cucumber_step_mother.announce(announcement)
43:       end
announce_world() click to toggle source

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
ask(question, timeout_seconds=60) click to toggle source

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
embed(file, mime_type) click to toggle source

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
pending(message = "TODO") click to toggle source

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
py_string(string_with_triple_quotes, file=nil, line_offset=0) click to toggle source

See StepMother#py_string

    # 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
steps(steps_text) click to toggle source

See StepMother#invoke_steps

    # 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
table(text_or_table, file=nil, line_offset=0) click to toggle source

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.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.