Sha256: baef01d3f5336af29d92129660b4806e0b89ab104b66b74365f77b0bd423acc1
Contents?: true
Size: 505 Bytes
Versions: 24
Compression:
Stored size: 505 Bytes
Contents
module Rspec module Generators class EnquiryControllerGenerator < ::Rails::Generators::NamedBase source_root File.expand_path('../templates', __FILE__) argument :action_name, :type => :string, :default => 'index', :banner => 'action_name' def create_enquiry_controller_spec template 'enquiry_controller_spec.rb', File.join('spec/controllers', class_path, "#{file_name}_enquiry_controller_spec.rb") end end end end
Version data entries
24 entries across 24 versions & 1 rubygems