Sha256: 185ebf2ed5d1b87a314afb9a105ea6e8250ea7f211f226e8861531b578f645f3
Contents?: true
Size: 570 Bytes
Versions: 16
Compression:
Stored size: 570 Bytes
Contents
require 'generators/rspec' module Rspec module Generators class MailerGenerator < Base argument :actions, :type => :array, :default => [], :banner => "method method" def create_mailer_files template "mailer_spec.rb", File.join('spec', 'models', class_path, "#{file_name}_spec.rb") end def create_fixtures_files actions.each do |action| @action, @path = action, File.join(file_path, action) template "fixture", File.join("spec/fixtures", @path) end end end end end
Version data entries
16 entries across 16 versions & 2 rubygems