Class: Spinach::FeatureSteps

Inherits:
Object
  • Object
show all
Includes:
DSL
Defined in:
lib/spinach/feature_steps.rb,
lib/spinach/capybara.rb

Overview

The feature class is the class which all the features must inherit from.

Defined Under Namespace

Modules: Capybara

Class Method Summary (collapse)

Instance Method Summary (collapse)

Methods included from DSL

included

Class Method Details

+ (Object) include(*args)

Exposes the include method publicly so you can add more modules to it due its plastic nature.

Examples:

Spinach::FeatureSteps.include Capybara::DSL


25
26
27
# File 'lib/spinach/feature_steps.rb', line 25

def include(*args)
  include_private(*args)
end

+ (Object) include_private



18
# File 'lib/spinach/feature_steps.rb', line 18

alias_method :include_private, :include

+ (Object) inherited(base)

Registers the feature class for later use.

Parameters:

  • base (Class)

    The host class.



14
15
16
# File 'lib/spinach/feature_steps.rb', line 14

def inherited(base)
  Spinach.feature_steps << base
end

Instance Method Details

- (Object) after_each



31
# File 'lib/spinach/feature_steps.rb', line 31

def after_each; end

- (Object) before_each



30
# File 'lib/spinach/feature_steps.rb', line 30

def before_each; end