Class: PickleGenerator

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

Instance Method Summary collapse

Instance Method Details

#copy_email_steps_fileObject



27
28
29
30
31
# File 'lib/generators/pickle_generator.rb', line 27

def copy_email_steps_file
  return unless options.email?
  template "email_steps.rb", "features/step_definitions/email_steps.rb"
  template "email.rb", "features/support/email.rb"
end

#copy_paths_fileObject



22
23
24
25
# File 'lib/generators/pickle_generator.rb', line 22

def copy_paths_file
  return unless options.paths?
  template "paths.rb", "features/support/paths.rb"
end

#copy_pickle_steps_fileObject



17
18
19
20
# File 'lib/generators/pickle_generator.rb', line 17

def copy_pickle_steps_file
  template "pickle_steps.rb", "features/step_definitions/pickle_steps.rb"
  template "pickle.rb", "features/support/pickle.rb"
end

#create_directoriesObject



12
13
14
15
# File 'lib/generators/pickle_generator.rb', line 12

def create_directories
  empty_directory "features/step_definitions"
  empty_directory "features/support"
end