# Preview all emails at http://localhost:3000/rails/mailers/sponsor_mailer
class SponsorMailerPreview < ActionMailer::Preview
def petition_and_email_confirmation_for_sponsor - SponsorMailerPreview#petition_and_email_confirmation_for_sponsor doesn't depend on instance state (maybe move it to another class?)
SponsorMailer.petition_and_email_confirmation_for_sponsor(Signature.sponsors.last)
end
def sponsor_signed_email_on_threshold - SponsorMailerPreview#sponsor_signed_email_on_threshold doesn't depend on instance state (maybe move it to another class?)
sponsor = Signature.sponsors.last
petition = sponsor.petition
SponsorMailer.sponsor_signed_email_on_threshold(sponsor)
end
end