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