Sha256: 764734bab8bcde854499f4ba7977cbab647fa62467ceeb90453eecbb735c9591

Contents?: true

Size: 330 Bytes

Versions: 2

Compression:

Stored size: 330 Bytes

Contents

module RSpec
  module Generators
    class DecoratorGenerator < ::Rails::Generators::NamedBase
      source_root File.expand_path('../templates', __FILE__)

      def create_decorator_spec
        template 'decorator_spec.rb', File.join('spec/decorators', class_path, "#{file_name}_decorator_spec.rb")
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
light-decorator-1.0.1 lib/generators/rspec/decorator/decorator_generator.rb
light-decorator-1.0.0 lib/generators/rspec/decorator/decorator_generator.rb