Class: Rspec::Generators::MailerGenerator
- Defined in:
- lib/generators/rspec/mailer/mailer_generator.rb
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#generate_fixtures_files ⇒ Object
12 13 14 15 16 17 |
# File 'lib/generators/rspec/mailer/mailer_generator.rb', line 12 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 |
#generate_mailer_spec ⇒ Object
8 9 10 |
# File 'lib/generators/rspec/mailer/mailer_generator.rb', line 8 def generate_mailer_spec template "mailer_spec.rb", File.join('spec/mailers', class_path, "#{file_name}_spec.rb") end |