@@ -85,7 +85,7 class AdminControllerTest < ActionController::TestCase | |||
|
85 | 85 | get :test_email |
|
86 | 86 | assert_redirected_to '/settings/edit?tab=notifications' |
|
87 | 87 | mail = ActionMailer::Base.deliveries.last |
|
88 |
assert_ |
|
|
88 | assert_not_nil mail | |
|
89 | 89 | user = User.find(1) |
|
90 | 90 | assert_equal [user.mail], mail.bcc |
|
91 | 91 | end |
@@ -72,7 +72,7 class FilesControllerTest < ActionController::TestCase | |||
|
72 | 72 | assert_equal Project.find(1), a.container |
|
73 | 73 | |
|
74 | 74 | mail = ActionMailer::Base.deliveries.last |
|
75 |
assert_ |
|
|
75 | assert_not_nil mail | |
|
76 | 76 | assert_equal "[eCookbook] New file", mail.subject |
|
77 | 77 | assert mail.body.include?('testfile.txt') |
|
78 | 78 | end |
@@ -1525,7 +1525,7 class IssuesControllerTest < ActionController::TestCase | |||
|
1525 | 1525 | assert issue.watched_by?(User.find(3)) |
|
1526 | 1526 | # Watchers notified |
|
1527 | 1527 | mail = ActionMailer::Base.deliveries.last |
|
1528 |
assert_ |
|
|
1528 | assert_not_nil mail | |
|
1529 | 1529 | assert [mail.bcc, mail.cc].flatten.include?(User.find(3).mail) |
|
1530 | 1530 | end |
|
1531 | 1531 | |
@@ -2166,7 +2166,7 class IssuesControllerTest < ActionController::TestCase | |||
|
2166 | 2166 | assert_equal '125', issue.custom_value_for(2).value |
|
2167 | 2167 | |
|
2168 | 2168 | mail = ActionMailer::Base.deliveries.last |
|
2169 |
assert_ |
|
|
2169 | assert_not_nil mail | |
|
2170 | 2170 | assert mail.subject.starts_with?("[#{issue.project.name} - #{issue.tracker.name} ##{issue.id}]") |
|
2171 | 2171 | assert mail.body.include?("Subject changed from #{old_subject} to #{new_subject}") |
|
2172 | 2172 | end |
@@ -2241,7 +2241,7 class IssuesControllerTest < ActionController::TestCase | |||
|
2241 | 2241 | assert_equal 'New custom value', issue.custom_value_for(2).value |
|
2242 | 2242 | |
|
2243 | 2243 | mail = ActionMailer::Base.deliveries.last |
|
2244 |
assert_ |
|
|
2244 | assert_not_nil mail | |
|
2245 | 2245 | assert mail.body.include?("Searchable field changed from 125 to New custom value") |
|
2246 | 2246 | end |
|
2247 | 2247 |
@@ -104,7 +104,7 class MessagesControllerTest < ActionController::TestCase | |||
|
104 | 104 | assert_equal 1, message.board_id |
|
105 | 105 | |
|
106 | 106 | mail = ActionMailer::Base.deliveries.last |
|
107 |
assert_ |
|
|
107 | assert_not_nil mail | |
|
108 | 108 | assert_equal "[#{message.board.project.name} - #{message.board.name} - msg#{message.root.id}] Test created message", mail.subject |
|
109 | 109 | assert mail.body.include?('Message body') |
|
110 | 110 | # author |
@@ -43,7 +43,7 class MailerTest < ActiveSupport::TestCase | |||
|
43 | 43 | assert Mailer.deliver_issue_edit(journal) |
|
44 | 44 | |
|
45 | 45 | mail = ActionMailer::Base.deliveries.last |
|
46 |
assert_ |
|
|
46 | assert_not_nil mail | |
|
47 | 47 | |
|
48 | 48 | assert_select_email do |
|
49 | 49 | # link to the main ticket |
@@ -73,7 +73,7 class MailerTest < ActiveSupport::TestCase | |||
|
73 | 73 | assert Mailer.deliver_issue_edit(journal) |
|
74 | 74 | |
|
75 | 75 | mail = ActionMailer::Base.deliveries.last |
|
76 |
assert_ |
|
|
76 | assert_not_nil mail | |
|
77 | 77 | |
|
78 | 78 | assert_select_email do |
|
79 | 79 | # link to the main ticket |
@@ -106,7 +106,7 class MailerTest < ActiveSupport::TestCase | |||
|
106 | 106 | assert Mailer.deliver_issue_edit(journal) |
|
107 | 107 | |
|
108 | 108 | mail = ActionMailer::Base.deliveries.last |
|
109 |
assert_ |
|
|
109 | assert_not_nil mail | |
|
110 | 110 | |
|
111 | 111 | assert_select_email do |
|
112 | 112 | # link to the main ticket |
@@ -173,7 +173,7 class RepositoryTest < ActiveSupport::TestCase | |||
|
173 | 173 | # 2 email notifications |
|
174 | 174 | assert_equal 2, ActionMailer::Base.deliveries.size |
|
175 | 175 | mail = ActionMailer::Base.deliveries.first |
|
176 |
assert_ |
|
|
176 | assert_not_nil mail | |
|
177 | 177 | assert mail.subject.starts_with?( |
|
178 | 178 | "[#{fixed_issue.project.name} - #{fixed_issue.tracker.name} ##{fixed_issue.id}]") |
|
179 | 179 | assert mail.body.include?( |
General Comments 0
You need to be logged in to leave comments.
Login now