factory_girl
https://github.com/thoughtbot/factory_girl
Ruby
A library for setting up Ruby objects as test data.
Mail::Address#address
Returns the address that is in the address itself. That is, the
local@domain string, without any angle brackets or the like.
a = Address.new('Mikel Lindsaar (My email address) <[email protected]>')
a.address #=> '[email protected]'Edit
git clone [email protected]:thoughtbot/factory_girl.git
cd factory_girl
open
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Mail--Address-address-for-pr
# Commit to gitgit add git commit -m "better docs for Mail::Address#address"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Mail--Address-address-for-pr
hub pull-request
# Celebrate!