Sha256: 9270dae633fd054627915a0c4f75bd57d9e25cff7f9731a7e3d949593ccb86a8

Contents?: true

Size: 282 Bytes

Versions: 17

Compression:

Stored size: 282 Bytes

Contents

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

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

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
active_decorator-0.5.2 lib/generators/test_unit/decorator_generator.rb
active_decorator-0.5.1 lib/generators/test_unit/decorator_generator.rb
active_decorator-0.5.0 lib/generators/test_unit/decorator_generator.rb
active_decorator-0.4.0 lib/generators/test_unit/decorator_generator.rb
active_decorator-0.3.4 lib/generators/test_unit/decorator_generator.rb
draper-0.17.0 lib/generators/test_unit/decorator_generator.rb
draper-0.16.0 lib/generators/test_unit/decorator_generator.rb
active_decorator-0.3.3 lib/generators/test_unit/decorator_generator.rb
draper-0.15.0 lib/generators/test_unit/decorator_generator.rb
draper-0.15.0rc1 lib/generators/test_unit/decorator_generator.rb
draper-0.14.0 lib/generators/test_unit/decorator_generator.rb
draper-0.12.3 lib/generators/test_unit/decorator_generator.rb
draper-0.12.2 lib/generators/test_unit/decorator_generator.rb
draper-0.13.0 lib/generators/test_unit/decorator_generator.rb
draper-0.12.1 lib/generators/test_unit/decorator_generator.rb
draper-0.12.0 lib/generators/test_unit/decorator_generator.rb
active_decorator-0.3.2 lib/generators/test_unit/decorator_generator.rb