Starting from Rails 4.2, calling MyMailer.some_method no longer result in an immediate call to MyMailer#some_method. Instead, a "lazy proxy" is returned (this is changed to support #deliver_later). As a quick hack to fix the test, calling #message (or anything, really) would force the Mailer object to be created and the method invoked. |
||
|---|---|---|
| .. | ||
| components | ||
| controllers | ||
| fabricators | ||
| fixtures | ||
| helpers | ||
| integration | ||
| integrity | ||
| jobs | ||
| mailers | ||
| models | ||
| phantom_js | ||
| serializers | ||
| services | ||
| support | ||
| views/omniauth_callbacks | ||
| spec_helper.rb | ||