Adds helpers for testing email body.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9086 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -176,8 +176,8 @@ class RepositoryTest < ActiveSupport::TestCase
|
||||
assert_not_nil mail
|
||||
assert mail.subject.starts_with?(
|
||||
"[#{fixed_issue.project.name} - #{fixed_issue.tracker.name} ##{fixed_issue.id}]")
|
||||
assert mail.body.include?(
|
||||
"Status changed from #{old_status} to #{fixed_issue.status}")
|
||||
assert_mail_body_match(
|
||||
"Status changed from #{old_status} to #{fixed_issue.status}", mail)
|
||||
|
||||
# ignoring commits referencing an issue of another project
|
||||
assert_equal [], Issue.find(4).changesets
|
||||
|
||||
Reference in New Issue
Block a user