diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-10-17 09:14:23 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-10-17 09:14:23 +0000 |
commit | bf14be9f2ccaf98b087830aaa91ec3f7c0644fae (patch) | |
tree | 3224579eb0538b1423ca08b4de7781041fde16ab /test/unit/mail_handler_test.rb | |
parent | 7642378bf425d828db6747dd49ec48a9cc15e129 (diff) | |
download | redmine-bf14be9f2ccaf98b087830aaa91ec3f7c0644fae.tar.gz redmine-bf14be9f2ccaf98b087830aaa91ec3f7c0644fae.zip |
Deliveries already cleared in #setup.
git-svn-id: http://svn.redmine.org/redmine/trunk@14683 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/mail_handler_test.rb')
-rw-r--r-- | test/unit/mail_handler_test.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/test/unit/mail_handler_test.rb b/test/unit/mail_handler_test.rb index 23babb986..9534980fd 100644 --- a/test/unit/mail_handler_test.rb +++ b/test/unit/mail_handler_test.rb @@ -41,7 +41,6 @@ class MailHandlerTest < ActiveSupport::TestCase end def test_add_issue_with_specific_overrides - ActionMailer::Base.deliveries.clear issue = submit_email('ticket_on_given_project.eml', :allow_override => ['status', 'start_date', 'due_date', 'assigned_to', 'fixed_version', 'estimated_hours', 'done_ratio'] ) @@ -72,7 +71,6 @@ class MailHandlerTest < ActiveSupport::TestCase end def test_add_issue_with_all_overrides - ActionMailer::Base.deliveries.clear issue = submit_email('ticket_on_given_project.eml', :allow_override => 'all') assert issue.is_a?(Issue) assert !issue.new_record? @@ -705,7 +703,6 @@ class MailHandlerTest < ActiveSupport::TestCase def test_add_issue_should_send_email_notification Setting.notified_events = ['issue_added'] - ActionMailer::Base.deliveries.clear # This email contains: 'Project: onlinestore' issue = submit_email('ticket_on_given_project.eml') assert issue.is_a?(Issue) @@ -786,7 +783,6 @@ class MailHandlerTest < ActiveSupport::TestCase end def test_update_issue_should_send_email_notification - ActionMailer::Base.deliveries.clear journal = submit_email('ticket_reply.eml') assert journal.is_a?(Journal) assert_equal 1, ActionMailer::Base.deliveries.size |