Permalink
Browse files

Added ActionMailer::Base.deliver_method = :test to the test environme…

…nt 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
  • Loading branch information...
1 parent f6d2bc3 commit 37558162664344794cf635bc7e6c976393e0ed17 @dhh dhh committed Dec 23, 2004
Showing with 3 additions and 2 deletions.
  1. +2 −1 railties/CHANGELOG
  2. +1 −1 railties/environments/test.rb
View
@@ -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]
@@ -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

0 comments on commit 3755816

Please sign in to comment.