agenda-libre-ruby/test/mailers/previews/orga_mailer_preview.rb

27 lines
949 B
Ruby

# Preview all emails at http://localhost:3000/rails/mailers/orga_mailer
class OrgaMailerPreview < ActionMailer::Preview
# Preview this email at http://localhost:3000/rails/mailers/orga_mailer/create
def create
ActionMailer::Base.default_url_options[:host] = 'localhost:3000'
OrgaMailer.create Orga.last
end
# Preview this email at http://localhost:3000/rails/mailers/orga_mailer/update
def update
ActionMailer::Base.default_url_options[:host] = 'localhost:3000'
OrgaMailer.update Orga.last
end
# Preview this email at http://localhost:3000/rails/mailers/orga_mailer/accept
def accept
ActionMailer::Base.default_url_options[:host] = 'localhost:3000'
OrgaMailer.accept Orga.last
end
# Preview this email at http://localhost:3000/rails/mailers/orga_mailer/destroy
def destroy
ActionMailer::Base.default_url_options[:host] = 'localhost:3000'
OrgaMailer.destroy Orga.last, 'hello world'
end
end