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:
Jean-Philippe Lang
2012-03-04 13:28:18 +00:00
parent b1d5f42237
commit 3aaf2b9ed0
7 changed files with 38 additions and 18 deletions
+1 -1
View File
@@ -74,7 +74,7 @@ class FilesControllerTest < ActionController::TestCase
mail = ActionMailer::Base.deliveries.last
assert_not_nil mail
assert_equal "[eCookbook] New file", mail.subject
assert mail.body.include?('testfile.txt')
assert_mail_body_match 'testfile.txt', mail
end
def test_create_version_file