mirror of
https://github.com/discourse/discourse.git
synced 2025-03-19 19:25:32 +08:00

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.