Class: PickleGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- PickleGenerator
- Defined in:
- lib/generators/pickle_generator.rb
Instance Method Summary collapse
- #copy_email_steps_file ⇒ Object
- #copy_paths_file ⇒ Object
- #copy_pickle_steps_file ⇒ Object
- #create_directories ⇒ Object
Instance Method Details
#copy_email_steps_file ⇒ Object
27 28 29 30 31 |
# File 'lib/generators/pickle_generator.rb', line 27 def copy_email_steps_file return unless .email? template "email_steps.rb", "features/step_definitions/email_steps.rb" template "email.rb", "features/support/email.rb" end |
#copy_paths_file ⇒ Object
22 23 24 25 |
# File 'lib/generators/pickle_generator.rb', line 22 def copy_paths_file return unless .paths? template "paths.rb", "features/support/paths.rb" end |
#copy_pickle_steps_file ⇒ Object
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_directories ⇒ Object
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 |