AgileVentures/LocalSupport — pull request #13 by johnnymo87 (2014-03-20 23:28:58+00:00)
Title: Testing emails

* added `customer_devise_mailer` to monkey patch the method sending the invitation email, to insert `header[:cc] = 'technical@harrowcn.org.uk'`
* moved devise emails to `app/views/custom_devise_mailer`, as required by the docs
* rewrote email to include Rachel's changes
* switched a setting in `config/initializers/devise.rb` to have devise use our mailer
* editted `config/locales/devise_invitable.en.yml` to update the email subject field
* shuffled scenario order in `without_users.feature` (no change)
* moved a step to a different definition file
* expanded `spec/invitations/invitations_spec.rb` to check email header fields
* cucumber runtime: ~5s; rspec runtime: ~0.05s