Skip to content
Browse files

changed test to get TestMailer to use :file delivery method directly …

…(as setup action was resetting delivery_method to :test on init
  • Loading branch information...
1 parent e4a989e commit 4240369a4399b944a0652807c545ffe99d7fb0cd José Valim and Mikel Lindsaar committed Jan 25, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 actionmailer/test/old_base/mail_service_test.rb
View
6 actionmailer/test/old_base/mail_service_test.rb
@@ -967,10 +967,10 @@ def test_headers_removed_on_smtp_delivery
end
def test_file_delivery_should_create_a_file
- ActionMailer::Base.delivery_method = :file
- tmp_location = ActionMailer::Base.file_settings[:location]
+ TestMailer.delivery_method = :file
+ tmp_location = TestMailer.file_settings[:location]
- TestMailer.cc_bcc(@recipient).deliver
+ result = TestMailer.cc_bcc(@recipient).deliver
assert File.exists?(tmp_location)
assert File.directory?(tmp_location)
assert File.exists?(File.join(tmp_location, @recipient))

0 comments on commit 4240369

Please sign in to comment.
Something went wrong with that request. Please try again.