Module Cucumber::RbSupport::RbWorld
In: lib/cucumber/rb_support/rb_world.rb

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

Methods

Attributes

__cucumber_step_mother  [W] 

Public Class methods

Public Instance methods

Call a Transform with a string from another Transform definition

Output announcement alongside the formatted output. This is an alternative to using Kernel#puts - it will display nicer, and in all outputs (in case you use several formatters)

Beware that the output will be printed before the corresponding step. This is because the step itself will not be printed until after it has run, so it can be coloured according to its status.

Returns a Cucumber::Ast::Table for text_or_table, which can either be a String:

  table(%{
    | account | description | amount |
    | INT-100 | Taxi        | 114    |
    | CUC-101 | Peeler      | 22     |
  })

or a 2D Array:

  table([
    %w{ account description amount },
    %w{ INT-100 Taxi        114    },
    %w{ CUC-101 Peeler      22     }
  ])

[Validate]