Sha256: 78cf1a424ca95ed82b93275b6d4e78813dc4e612cd1fe9f7c00e9d2fef8286ca
Contents?: true
Size: 311 Bytes
Versions: 1
Compression:
Stored size: 311 Bytes
Contents
module TestUnit class DecoratorGenerator < ::Rails::Generators::NamedBase source_root File.expand_path('../templates', __FILE__) TEST_ROOT = 'test/decorators/' def build_model_decorator_tests template 'decorator_test.rb', "#{TEST_ROOT}#{singular_name}_decorator_test.rb" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
draper-0.10.0 | lib/generators/test_unit/decorator_generator.rb |