Sha256: 346286cbf9967f84cab73bdc1402bb13b0f4e22e350a1e76b1b3dd4c3bda7290
Contents?: true
Size: 523 Bytes
Versions: 4
Compression:
Stored size: 523 Bytes
Contents
require 'generators/my_scaffold_generator' module MySpec module Generators class HelperGenerator < Rails::Generators::NamedBase include MyGenerators::Generators::MyScaffoldGenerator def generate_helper_spec return unless options[:helper_specs] template 'helper_spec.rb', File.join('spec/helpers', class_path, "#{file_name}_helper_spec.rb") end def self.source_root @source_root ||= File.expand_path("templates", File.dirname(__FILE__)) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems