From 6e689215908185642990dc9bf010b627f06e6124 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 20 Feb 2010 10:11:19 +0000 Subject: [PATCH] Cleanup. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3459 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/mailer_test.rb | 8 -------- 1 file changed, 8 deletions(-) diff --git a/test/unit/mailer_test.rb b/test/unit/mailer_test.rb index 83495a32d..24de20672 100644 --- a/test/unit/mailer_test.rb +++ b/test/unit/mailer_test.rb @@ -29,7 +29,6 @@ class MailerTest < ActiveSupport::TestCase end def test_generated_links_in_emails - ActionMailer::Base.deliveries.clear Setting.host_name = 'mydomain.foo' Setting.protocol = 'https' @@ -51,7 +50,6 @@ class MailerTest < ActiveSupport::TestCase 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 @@ class MailerTest < ActiveSupport::TestCase 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 @@ class MailerTest < ActiveSupport::TestCase 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 @@ class MailerTest < ActiveSupport::TestCase end def test_mail_from_with_phrase - ActionMailer::Base.deliveries.clear with_settings :mail_from => 'Redmine app ' do Mailer.deliver_test(User.find(1)) end @@ -141,7 +136,6 @@ class MailerTest < ActiveSupport::TestCase 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 @@ class MailerTest < ActiveSupport::TestCase 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 @@ class MailerTest < ActiveSupport::TestCase end def test_reminders - ActionMailer::Base.deliveries.clear Mailer.reminders(:days => 42) assert_equal 1, ActionMailer::Base.deliveries.size mail = ActionMailer::Base.deliveries.last