Displaying 1 result from an estimated 1 matches for "do_check_email_response".
2007 May 29
0
specs for ActionMailer
...;)
@expected.date = Time.now
# (asserting mimeparts is too hard )
#@expected.encoded.should == AdminNotify.create_itemcreated
(@item, at expected.date).encoded
# just check contents part of message
response = AdminNotify.create_itemcreated(@item, at expected.date)
do_check_email_response(@expected, response)
end
end
def read_fixture(action)
IO.readlines("#{FIXTURES_PATH}/admin_notify/#{action}")
end
def encode(subject)
quoted_printable(subject, CHARSET)
end
def do_check_email_response(expected, response)
response.date.should == expecte...