On 2/14/07, Stever <steve-HiVQJmIVH4ivvaMlHRW6lQ@public.gmane.org>
wrote:>
> 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
>
Steve,
Add to the functional tests setup() method the following line:
ActionMailer::Base.deliveries.clear
--
Zack Chandler
http://depixelate.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---