class Rspec::Generators::ViewGenerator

@private

Public Instance Methods

create_view_specs() click to toggle source
# File 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.#{options[:template_engine]}_spec.rb")
  end
end