Sha256: 3b373ff551afcb18294e13f3d396f4fc898527986e1901ea9339c355e17896cb

Contents?: true

Size: 320 Bytes

Versions: 5

Compression:

Stored size: 320 Bytes

Contents

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

    def create_spec_file
      empty_directory 'spec/decorators'

      template 'decorator_spec.rb', File.join('spec/decorators', "#{singular_name}_decorator_spec.rb")
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
active_decorator-0.3.1 lib/generators/rspec/decorator_generator.rb
active_decorator-0.3.0 lib/generators/rspec/decorator_generator.rb
active_decorator-0.2.1 lib/generators/rspec/decorator_generator.rb
active_decorator-0.2.0 lib/generators/rspec/decorator_generator.rb
active_decorator-0.1.0 lib/generators/rspec/decorator_generator.rb