Class: Rspec::Generators::MailerGenerator

Inherits:
Base
  • Object
show all
Defined in:
lib/generators/rspec/mailer/mailer_generator.rb

Instance Method Summary collapse

Methods inherited from Base

source_root

Instance Method Details

#generate_fixtures_filesObject



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_specObject



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