Parent

Files

Class/Module Index [+]

Quicksearch

Rspec::Generators::MailerGenerator

Public Instance Methods

generate_fixtures_files() click to toggle source
# 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() click to toggle source
# 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

[Validate]

Generated with the Darkfish Rdoc Generator 2.