https://github.com/mikel/mail
Ruby
A Really Ruby Mail Library
Mail::TestMailer.deliveries=
Allows you to over write the default deliveries store from an array to some other object. If you just want to clear the store, call TestMailer.deliveries.clear. If you place another object here, please make sure it responds to: * << (message) * clear * length * size * and other common Array methods
Edit
git clone [email protected]:mikel/mail.git
cd mail
open lib/mail/network/delivery_methods/test_mailer.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Mail--TestMailer-deliveries--for-pr
# Commit to gitgit add lib/mail/network/delivery_methods/test_mailer.rbgit commit -m "better docs for Mail::TestMailer.deliveries="
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Mail--TestMailer-deliveries--for-pr
hub pull-request
# Celebrate!