Sha256: d39dfdf09c44a1fa72b067a1e3b68ba191f11e826a4b2eed7467ec5e6289da20

Contents?: true

Size: 352 Bytes

Versions: 10

Compression:

Stored size: 352 Bytes

Contents

# frozen_string_literal: true

module Rspec
  module Generators
    class DecoratorGenerator < ::Rails::Generators::NamedBase
      source_root File.expand_path("templates", __dir__)

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
active_decorator-1.4.1 lib/generators/rspec/decorator_generator.rb
active_decorator-1.4.0 lib/generators/rspec/decorator_generator.rb
active_decorator-1.3.4 lib/generators/rspec/decorator_generator.rb
active_decorator-1.3.3 lib/generators/rspec/decorator_generator.rb
active_decorator-1.3.2 lib/generators/rspec/decorator_generator.rb
active_decorator-1.3.1 lib/generators/rspec/decorator_generator.rb
active_decorator-1.3.0 lib/generators/rspec/decorator_generator.rb
active_decorator-1.2.0 lib/generators/rspec/decorator_generator.rb
active_decorator-1.1.1 lib/generators/rspec/decorator_generator.rb
active_decorator-1.1.0 lib/generators/rspec/decorator_generator.rb