Sha256: 1dac0cf559c91e803febc8ed7aa734f97cbe7551290f9c98f824b7ac0ebefe80
Contents?: true
Size: 279 Bytes
Versions: 17
Compression:
Stored size: 279 Bytes
Contents
module Rspec class DecoratorGenerator < ::Rails::Generators::NamedBase source_root File.expand_path('../templates', __FILE__) def create_spec_file template 'decorator_spec.rb', File.join('spec/decorators', "#{singular_name}_decorator_spec.rb") end end end
Version data entries
17 entries across 17 versions & 2 rubygems