Displaying 1 result from an estimated 1 matches for "adminnotify".
2007 May 29
0
specs for ActionMailer
...ms to work. I''d
appreciate comments/suggestions.
Rails script/generate mailer produces tests for the email contents
etc. I''ve started by manually converting the generated unit tests to
rspec, and then changing/adding examples as I implement the emails.
In this scenario, an AdminNotify message is sent when a create action
of PagesController class completes.
-----------------
app/models/admin_notify.rb :
class AdminNotify < ActionMailer::Base
def itemcreated(item, sent_at = Time.now)
@subject = ''MySite: itemcreated''
@body = { :item =...