Class: Jasmine::Generators::ExamplesGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Jasmine::Generators::ExamplesGenerator
- Defined in:
- lib/generators/jasmine/examples/examples_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
5 6 7 |
# File 'lib/generators/jasmine/examples/examples_generator.rb', line 5 def self.source_root @source_root ||= File.(File.join(File.dirname(__FILE__), 'templates')) end |
Instance Method Details
#app_name ⇒ Object
14 15 16 |
# File 'lib/generators/jasmine/examples/examples_generator.rb', line 14 def app_name Rails.application.class.name end |
#copy_example_files ⇒ Object
9 10 11 12 |
# File 'lib/generators/jasmine/examples/examples_generator.rb', line 9 def copy_example_files directory 'app' directory 'spec' end |