Permalink
Browse files

Cleanup.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3459 e93f8b46-1217-0410-a6f0-8f06a7374b81
  • Loading branch information...
1 parent dab0c07 commit 6e689215908185642990dc9bf010b627f06e6124 @jplang jplang committed Feb 20, 2010
Showing with 0 additions and 8 deletions.
  1. +0 −8 test/unit/mailer_test.rb
View
@@ -29,7 +29,6 @@ def setup
end
def test_generated_links_in_emails
- ActionMailer::Base.deliveries.clear
Setting.host_name = 'mydomain.foo'
Setting.protocol = 'https'
@@ -51,7 +50,6 @@ def test_generated_links_in_emails
def test_generated_links_with_prefix
relative_url_root = Redmine::Utils.relative_url_root
- ActionMailer::Base.deliveries.clear
Setting.host_name = 'mydomain.foo/rdm'
Setting.protocol = 'http'
Redmine::Utils.relative_url_root = '/rdm'
@@ -77,7 +75,6 @@ def test_generated_links_with_prefix
def test_generated_links_with_prefix_and_no_relative_url_root
relative_url_root = Redmine::Utils.relative_url_root
- ActionMailer::Base.deliveries.clear
Setting.host_name = 'mydomain.foo/rdm'
Setting.protocol = 'http'
Redmine::Utils.relative_url_root = nil
@@ -102,7 +99,6 @@ def test_generated_links_with_prefix_and_no_relative_url_root
end
def test_email_headers
- ActionMailer::Base.deliveries.clear
issue = Issue.find(1)
Mailer.deliver_issue_add(issue)
mail = ActionMailer::Base.deliveries.last
@@ -131,7 +127,6 @@ def test_html_mail
end
def test_mail_from_with_phrase
- ActionMailer::Base.deliveries.clear
with_settings :mail_from => 'Redmine app <redmine@example.net>' do
Mailer.deliver_test(User.find(1))
end
@@ -141,7 +136,6 @@ def test_mail_from_with_phrase
end
def test_issue_add_message_id
- ActionMailer::Base.deliveries.clear
issue = Issue.find(1)
Mailer.deliver_issue_add(issue)
mail = ActionMailer::Base.deliveries.last
@@ -151,7 +145,6 @@ def test_issue_add_message_id
end
def test_issue_edit_message_id
- ActionMailer::Base.deliveries.clear
journal = Journal.find(1)
Mailer.deliver_issue_edit(journal)
mail = ActionMailer::Base.deliveries.last
@@ -311,7 +304,6 @@ def test_register
end
def test_reminders
- ActionMailer::Base.deliveries.clear
Mailer.reminders(:days => 42)
assert_equal 1, ActionMailer::Base.deliveries.size
mail = ActionMailer::Base.deliveries.last

0 comments on commit 6e68921

Please sign in to comment.