Class: CucumberRailsTrainingWheels::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#create_env_stepsObject



6
7
8
9
10
11
12
13
14
# File 'lib/generators/cucumber_rails_training_wheels/install/install_generator.rb', line 6

def create_env_steps
  empty_directory 'features/step_definitions'

  if language
    template "step_definitions/web_steps_#{language}.rb.erb", "features/step_definitions/web_steps.rb"
  else
    template "step_definitions/web_steps.rb.erb", 'features/step_definitions/web_steps.rb'
  end
end

#create_feature_supportObject



16
17
18
19
20
# File 'lib/generators/cucumber_rails_training_wheels/install/install_generator.rb', line 16

def create_feature_support
  empty_directory 'features/support'
  copy_file       'support/paths.rb',     'features/support/paths.rb'
  copy_file       'support/selectors.rb', 'features/support/selectors.rb'
end