Has anyone run function tests on ActionMailer?

I am running function tests to see if ActionMailer mails out an email.
I have two development machines, both with rails 1.1.6. On one
machine, the ActionMailer::Base.deliveries array resets itself after
each test. On the other machine, the array keeps accumulating the
emails from the previous function tests and doesn’t clear out the
array after each test.

Both machines have identical rails (1.1.6) and the same version for
the rails dependencies (such as activemailer). Both use ruby 1.8.4.
Not sure if this makes a difference, but one uses Ubuntu Dapper and
the other uses Ubuntu Edgy.

Anyone know what’s going on?

  • Steve

On 2/14/07, Stever [email protected] wrote:

Not sure if this makes a difference, but one uses Ubuntu Dapper and
the other uses Ubuntu Edgy.

Anyone know what’s going on?

  • Steve

Steve,

Add to the functional tests setup() method the following line:

ActionMailer::Base.deliveries.clear


Zack C.
http://depixelate.com

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs