Sha256: a3f6bc64a2aecc21fb8165cabb2aca354a4ad079b6deaa87a48739f49eb6b55e
Contents?: true
Size: 373 Bytes
Versions: 23
Compression:
Stored size: 373 Bytes
Contents
# frozen_string_literal: true module Rspec module Generators 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_spec.rb.erb", File.join("spec/views", class_path, "#{file_name}_spec.rb") end end end end
Version data entries
23 entries across 23 versions & 1 rubygems