Do not do assertions on mail class.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8991 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2012-02-25 09:58:23 +00:00
parent f1b26008b8
commit 28503d83cb
6 changed files with 10 additions and 10 deletions
+3 -3
View File
@@ -1525,7 +1525,7 @@ class IssuesControllerTest < ActionController::TestCase
assert issue.watched_by?(User.find(3))
# Watchers notified
mail = ActionMailer::Base.deliveries.last
assert_kind_of TMail::Mail, mail
assert_not_nil mail
assert [mail.bcc, mail.cc].flatten.include?(User.find(3).mail)
end
@@ -2166,7 +2166,7 @@ class IssuesControllerTest < ActionController::TestCase
assert_equal '125', issue.custom_value_for(2).value
mail = ActionMailer::Base.deliveries.last
assert_kind_of TMail::Mail, mail
assert_not_nil mail
assert mail.subject.starts_with?("[#{issue.project.name} - #{issue.tracker.name} ##{issue.id}]")
assert mail.body.include?("Subject changed from #{old_subject} to #{new_subject}")
end
@@ -2241,7 +2241,7 @@ class IssuesControllerTest < ActionController::TestCase
assert_equal 'New custom value', issue.custom_value_for(2).value
mail = ActionMailer::Base.deliveries.last
assert_kind_of TMail::Mail, mail
assert_not_nil mail
assert mail.body.include?("Searchable field changed from 125 to New custom value")
end