Sha256: e8a9030ab0ad46f14c84ac312b11a16d796007d2901b2ada4cd5ecd2d1ec4028

Contents?: true

Size: 345 Bytes

Versions: 23

Compression:

Stored size: 345 Bytes

Contents

# frozen_string_literal: true

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

		def create_view
			@path = File.join("app/views", class_path, "#{file_name}.rb")
			template "view_test.rb.erb", File.join("test/views", class_path, "#{file_name}_test.rb")
		end
	end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
phlex-rails-1.1.2 lib/generators/test_unit/view_generator.rb
phlex-rails-1.1.1 lib/generators/test_unit/view_generator.rb
phlex-rails-1.1.0 lib/generators/test_unit/view_generator.rb
phlex-rails-1.0.0 lib/generators/test_unit/view_generator.rb
phlex-rails-0.10.0 lib/generators/test_unit/view_generator.rb
phlex-rails-0.8.1 lib/generators/test_unit/view_generator.rb
phlex-rails-0.9.0 lib/generators/test_unit/view_generator.rb
phlex-rails-0.8.0 lib/generators/test_unit/view_generator.rb
phlex-rails-0.7.1 lib/generators/test_unit/view_generator.rb
phlex-rails-0.7.0 lib/generators/test_unit/view_generator.rb
phlex-rails-0.6.1 lib/generators/test_unit/view_generator.rb
phlex-rails-0.6.0 lib/generators/test_unit/view_generator.rb
phlex-rails-0.5.1 lib/generators/test_unit/view_generator.rb
phlex-rails-0.5.0 lib/generators/test_unit/view_generator.rb
phlex-rails-0.4.2 lib/generators/test_unit/view_generator.rb
phlex-rails-0.4.1 lib/generators/test_unit/view_generator.rb
phlex-rails-0.4.0 lib/generators/test_unit/view_generator.rb
phlex-rails-0.3.2 lib/generators/test_unit/view_generator.rb
phlex-rails-0.3.1 lib/generators/test_unit/view_generator.rb
phlex-rails-0.3.0 lib/generators/test_unit/view_generator.rb