Class: IndexSteps

Inherits:
StepsTemplator show all
Defined in:
lib/generators/feature/index_steps.rb

Constant Summary

Constants inherited from StepsTemplator

StepsTemplator::VALID_TYPES

Instance Attribute Summary

Attributes inherited from StepsTemplator

#file, #generator

Instance Method Summary collapse

Methods inherited from StepsTemplator

#create_methods, #create_step

Methods included from Templator

#render

Constructor Details

#initialize(generator, user, file) ⇒ IndexSteps

Returns a new instance of IndexSteps.



4
5
6
# File 'lib/generators/feature/index_steps.rb', line 4

def initialize(generator, user, file)
  super
end

Instance Method Details

#createObject



8
9
10
11
12
# File 'lib/generators/feature/index_steps.rb', line 8

def create
  create_methods('index_methods.rb')
  create_step(:given, 'index_given_steps.rb')
  create_step(:then, 'index_then_steps.rb')
end