Sha256: d92227307a257aa20f3b28967955291c95cda9a44b8d43780f39dcd7bb86db87
Contents?: true
Size: 543 Bytes
Versions: 22
Compression:
Stored size: 543 Bytes
Contents
require 'generators/rspec' module Rspec module Generators # @private class GeneratorGenerator < Base class_option :generator_specs, type: :boolean, default: true, desc: "Generate generator specs" def generate_generator_spec return unless options[:generator_specs] template template_name, File.join('spec/generator', class_path, filename) end def template_name 'generator_spec.rb' end def filename "#{table_name}_generator_spec.rb" end end end end
Version data entries
22 entries across 20 versions & 4 rubygems
Version | Path |
---|---|
rspec-rails-4.0.0 | lib/generators/rspec/generator/generator_generator.rb |
rspec-rails-4.0.0.rc1 | lib/generators/rspec/generator/generator_generator.rb |