Sha256: b4a90cbc9db5b1c33c837b973ae8603f72decadba4e8d9afe41b7b990eb73a70
Contents?: true
Size: 623 Bytes
Versions: 9
Compression:
Stored size: 623 Bytes
Contents
module Rspec module Generators class NotifierGenerator < ::Rails::Generators::NamedBase source_root File.expand_path('../templates', __FILE__) argument :actions, type: :array, default: [], banner: 'method method' def generate_mailer_spec template 'notifier_spec.rb', File.join('spec/notifiers', class_path, "#{file_name}_spec.rb") end # def generate_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
9 entries across 9 versions & 1 rubygems