@@ -41,7 +41,6 class MailHandlerTest < ActiveSupport::TestCase | |||||
41 | end |
|
41 | end | |
42 |
|
42 | |||
43 | def test_add_issue_with_specific_overrides |
|
43 | def test_add_issue_with_specific_overrides | |
44 | ActionMailer::Base.deliveries.clear |
|
|||
45 | issue = submit_email('ticket_on_given_project.eml', |
|
44 | issue = submit_email('ticket_on_given_project.eml', | |
46 | :allow_override => ['status', 'start_date', 'due_date', 'assigned_to', 'fixed_version', 'estimated_hours', 'done_ratio'] |
|
45 | :allow_override => ['status', 'start_date', 'due_date', 'assigned_to', 'fixed_version', 'estimated_hours', 'done_ratio'] | |
47 | ) |
|
46 | ) | |
@@ -72,7 +71,6 class MailHandlerTest < ActiveSupport::TestCase | |||||
72 | end |
|
71 | end | |
73 |
|
72 | |||
74 | def test_add_issue_with_all_overrides |
|
73 | def test_add_issue_with_all_overrides | |
75 | ActionMailer::Base.deliveries.clear |
|
|||
76 | issue = submit_email('ticket_on_given_project.eml', :allow_override => 'all') |
|
74 | issue = submit_email('ticket_on_given_project.eml', :allow_override => 'all') | |
77 | assert issue.is_a?(Issue) |
|
75 | assert issue.is_a?(Issue) | |
78 | assert !issue.new_record? |
|
76 | assert !issue.new_record? | |
@@ -705,7 +703,6 class MailHandlerTest < ActiveSupport::TestCase | |||||
705 |
|
703 | |||
706 | def test_add_issue_should_send_email_notification |
|
704 | def test_add_issue_should_send_email_notification | |
707 | Setting.notified_events = ['issue_added'] |
|
705 | Setting.notified_events = ['issue_added'] | |
708 | ActionMailer::Base.deliveries.clear |
|
|||
709 | # This email contains: 'Project: onlinestore' |
|
706 | # This email contains: 'Project: onlinestore' | |
710 | issue = submit_email('ticket_on_given_project.eml') |
|
707 | issue = submit_email('ticket_on_given_project.eml') | |
711 | assert issue.is_a?(Issue) |
|
708 | assert issue.is_a?(Issue) | |
@@ -786,7 +783,6 class MailHandlerTest < ActiveSupport::TestCase | |||||
786 | end |
|
783 | end | |
787 |
|
784 | |||
788 | def test_update_issue_should_send_email_notification |
|
785 | def test_update_issue_should_send_email_notification | |
789 | ActionMailer::Base.deliveries.clear |
|
|||
790 | journal = submit_email('ticket_reply.eml') |
|
786 | journal = submit_email('ticket_reply.eml') | |
791 | assert journal.is_a?(Journal) |
|
787 | assert journal.is_a?(Journal) | |
792 | assert_equal 1, ActionMailer::Base.deliveries.size |
|
788 | assert_equal 1, ActionMailer::Base.deliveries.size |
General Comments 0
You need to be logged in to leave comments.
Login now