Topic: Can I read the development.log as ActionMailer simply won't send on XP

I learned the hard way how to RUIN a InstantRails installation on Windows XP by installing a 'free' SMPT host that was supposed to 'trick' my mail server into acting like it was 'localhost' (and thus I would be able to receive my test emails).
Anyway, I'm not going to go down that road again and am always able to produce the emails in my development.log.
Is there some way in my unit testing that I can look into this file to see the email went off ok? The reason I must do this is that part of my user.create action is to send an authorization email to the new user (who then must follow the link to validate).
Thank you for any help you may offer.
Kathy

Re: Can I read the development.log as ActionMailer simply won't send on XP

In your test.rb environment file, you can specify

# Tell ActionMailer not to deliver emails to the real world.
# The :test delivery method accumulates sent emails in the
# ActionMailer::Base.deliveries array.
config.action_mailer.delivery_method = :test

In your test's setup method:
    # ensure we clear our any previous mail
    ActionMailer::Base.deliveries = []

in your test, after sending out a mail, here's how you can grab your mail to verify it:
    mail = ActionMailer::Base.deliveries[-1]
    assert_match(/blah/, mail.subject)
    #mail.from is an array
    assert_match(/blah@blah.com/, mail.from.first)