Sha256: 1dac0cf559c91e803febc8ed7aa734f97cbe7551290f9c98f824b7ac0ebefe80

Contents?: true

Size: 279 Bytes

Versions: 17

Compression:

Stored size: 279 Bytes

Contents

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

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

Version data entries

17 entries across 17 versions & 2 rubygems

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