Module: Spinach::DSL

Included in:
FeatureSteps
Defined in:
lib/spinach/dsl.rb

Overview

Spinach DSL aims to provide an easy way to define steps and hooks into your feature classes.

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object

Parameters:

  • base (Class)

    The host class.



12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/spinach/dsl.rb', line 12

def self.included(base)
  base.class_eval do
    include InstanceMethods
    extend ClassMethods
    include Hooks

    define_hook :before
    define_hook :after
    define_hook :before_scenario
    define_hook :after_scenario
    define_hook :before_step
    define_hook :after_step

  end
end