Class: IronCukeGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/iron_cuke_generator.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



6
7
8
# File 'lib/generators/iron_cuke_generator.rb', line 6

def self.source_root
  File.join(File.dirname(__FILE__), 'templates')
end

Instance Method Details

#create_features_step_definitionsObject



14
15
16
# File 'lib/generators/iron_cuke_generator.rb', line 14

def create_features_step_definitions
	copy_file "features/step_definitions/iron_cuke_steps.rb", "features/step_definitions/iron_cuke_steps.rb"
end

#create_features_supportObject



10
11
12
# File 'lib/generators/iron_cuke_generator.rb', line 10

def create_features_support
	copy_file "features/support/iron_cuke.rb", "features/support/iron_cuke.rb"
end