The setting should be in test.rb Michael, but have you tried it. I have been unable to get it working.
It seems that merb loads init.rb and then development.rb when running rake or rake spec. Does this sound right? I have also tried running my specs by specifying the environment - rake spec merb_env=test On Dec 4 2008, 9:18 pm, Michael Klishin <[email protected]> wrote: > On 05.12.2008, at 7:05, Jon Hancock wrote: > > > Am I supposed to have an after_app_loads block also in my > > development.rb?? Am I allowed to have multiple after_app_loads blocks > > defined and the second one won't clobber the first? > > If you add multiple callbacks, they are executed in the same order you > added them. > > To set up test delivery in merb-mailer, use > > Merb::BootLoader.before_app_loads do > Merb::Mailer.delivery_method = :test_send > end > > in environments/test.rb > > MK --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "merb" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/merb?hl=en -~----------~----~----~----~------~----~------~--~---
