Flowdock
method

with_steps_for

Importance_2
RSpec latest stable (1.3.1) - 0 notes - Class: Spec::Story::Extensions::Main

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (1.1.12) is shown here.

with_steps_for(*tags, &block) public

Creates a context for running a Plain Text Story with specific groups of Steps. Also supports adding arbitrary steps that will only be accessible to the Story being run.

Examples

  # Run a Story with one group of steps
  with_steps_for :checking_accounts do
    run File.dirname(__FILE__) + "/withdraw_cash"
  end

  # Run a Story, adding steps that are only available for this Story
  with_steps_for :accounts do
    Given "user is logged in as account administrator"
    run File.dirname(__FILE__) + "/reconcile_accounts"
  end

  # Run a Story with steps from two groups
  with_steps_for :checking_accounts, :savings_accounts do
    run File.dirname(__FILE__) + "/transfer_money"
  end

  # Run a Story with a specific Story extension
  with_steps_for :login, :navigation do
    run File.dirname(__FILE__) + "/user_changes_password", :type => RailsStory
  end
Show source
Register or log in to add new notes.