Class: Rspec::Generators::ViewGenerator Private
Do not use. This class is for internal use only.
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
Base ,
Rails::Generators::NamedBase
|
|
Instance Chain:
self,
Base ,
::RSpec::Rails::FeatureCheck ,
Rails::Generators::NamedBase
|
|
Inherits: |
Rspec::Generators::Base
|
Defined in: | rspec-rails/lib/generators/rspec/view/view_generator.rb |
Class Method Summary
Base
- Inherited
.configuration | Load configuration from |
.source_root |
Instance Method Summary
Instance Method Details
#create_view_specs
[ GitHub ]# File 'rspec-rails/lib/generators/rspec/view/view_generator.rb', line 11
def create_view_specs empty_directory target_path("views", file_path) actions.each do |action| @action = action template 'view_spec.rb', target_path("views", file_path, "#{@action}.html.#{ [:template_engine]}_spec.rb") end end