Sha256: 99ff4df3acd89119a5d8f064074601acaae862f7ae852794b43856e33b4d8245

Contents?: true

Size: 333 Bytes

Versions: 2

Compression:

Stored size: 333 Bytes

Contents

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

      def create_decorator_test
        template 'decorator_test.rb', File.join('test/decorators', class_path, "#{file_name}_decorator_test.rb")
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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