Sha256: 8f61afe4d5bc7558a709a97a8e778c05c85b6aefde1cd8300872dd33775c70f1

Contents?: true

Size: 350 Bytes

Versions: 1

Compression:

Stored size: 350 Bytes

Contents

module Rspec
  module Generators
		class PresenterGenerator < ::Rails::Generators::NamedBase
		  source_root File.expand_path(File.join(File.dirname(__FILE__), 'templates'))

		  def create_presenter_test
		    template 'presenter_spec.rb', File.join('spec/presenters', class_path, "#{file_name}_presenter_spec.rb")
		  end
		end
	end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
presenters-0.3.0 lib/generators/rspec/presenter_generator.rb