Makespace/equipment-db — pull request #17 by rjw57 (2012-10-18 09:57:18+00:00)
Title: Mailer fixes

From private correspondence: the tests I
have for sign up include sending the sign up email. When your stuff
got merged, config/initializers/mail.rb set ActionMailer to use
sendgrid for all environments including test. Travis-CI doesn't have
the sendgrid account details set up (rightly so). When the sign up
tests were run on travis, they failed because the e-mail couldn't be
sent.

I've wrapped config/initializers/mail.rb in something which means that
(hopefully) sendgrid is only used in production. It's not the neatest
of solutions but I think it should make the build green.