Added ActionMailer::Base.deliver_method = :test to the test environment so that mail objects are available in ActionMailer::Base.deliveries for functional testing.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@268 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson 2004-12-23 23:34:39 +00:00
parent f6d2bc30fe
commit 3755816266
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,7 @@
*SVN*
* Added ActionMailer::Base.raise_delivery_errors = false to the test environment as we checks will be performed against deliveries array instead.
* Added ActionMailer::Base.deliver_method = :test to the test environment so that mail objects are available in ActionMailer::Base.deliveries
for functional testing.
* Added protection for creating a model through the generators with a name of an existing class, like Thread or Date.
It'll even offer you a synonym using wordnet.princeton.edu as a look-up. No, I'm not kidding :) [Florian Gross]

View File

@ -1,4 +1,4 @@
ActionController::Base.consider_all_requests_local = true
ActionController::Base.reload_dependencies = false
ActiveRecord::Base.reload_associations = false
ActionMailer::Base.raise_delivery_errors = false
ActionMailer::Base.delivery_method = :test