Sha256: 0f5ce68e33ede9e4bc05cb0a63833faba9744367427053c0854b0b93be905ba3
Contents?: true
Size: 324 Bytes
Versions: 1
Compression:
Stored size: 324 Bytes
Contents
module Rspec class DecoratorGenerator < ::Rails::Generators::NamedBase source_root File.expand_path('../templates', __FILE__) SPEC_ROOT = 'spec/decorators/' def build_model_and_application_decorator_specs template 'decorator_spec.rb', "#{SPEC_ROOT}#{singular_name}_decorator_spec.rb" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
draper-0.10.0 | lib/generators/rspec/decorator_generator.rb |