# issue_edit(journal) => tmail object
# Mailer.deliver_issue_edit(journal) => sends an email to issue recipients
def issue_edit(journal)
- issue = journal.journalized
+ issue = journal.journalized.reload
redmine_headers 'Project' => issue.project.identifier,
'Issue-Id' => issue.id,
'Issue-Author' => issue.author.login
mail = ActionMailer::Base.deliveries.last
assert mail.body.include?("Status changed from New to Assigned")
+ # subject should contain the new status
+ assert mail.subject.include?("(#{ IssueStatus.find(2).name })")
end
def test_post_edit_with_note_only