Method: Beaker::DSL::Structure#step

Defined in:
lib/beaker/dsl/structure.rb

#step(step_name, &block) ⇒ Object

Provides a method to help structure tests into coherent steps.

Parameters:

  • step_name (String)

    The name of the step to be logged.

  • block (Proc)

    The actions to be performed in this step.



33
34
35
36
# File 'lib/beaker/dsl/structure.rb', line 33

def step step_name, &block
  logger.notify "\n  * #{step_name}\n"
  yield if block_given?
end