Skip to content

Commit

Permalink
changed test to get TestMailer to use :file delivery method directly …
Browse files Browse the repository at this point in the history
…(as setup action was resetting delivery_method to :test on init
  • Loading branch information
José Valim and Mikel Lindsaar committed Jan 25, 2010
1 parent e4a989e commit 4240369
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions actionmailer/test/old_base/mail_service_test.rb
Expand Up @@ -967,10 +967,10 @@ def test_headers_removed_on_smtp_delivery
end end


def test_file_delivery_should_create_a_file def test_file_delivery_should_create_a_file
ActionMailer::Base.delivery_method = :file TestMailer.delivery_method = :file
tmp_location = ActionMailer::Base.file_settings[:location] tmp_location = TestMailer.file_settings[:location]


TestMailer.cc_bcc(@recipient).deliver result = TestMailer.cc_bcc(@recipient).deliver
assert File.exists?(tmp_location) assert File.exists?(tmp_location)
assert File.directory?(tmp_location) assert File.directory?(tmp_location)
assert File.exists?(File.join(tmp_location, @recipient)) assert File.exists?(File.join(tmp_location, @recipient))
Expand Down

0 comments on commit 4240369

Please sign in to comment.