summaryrefslogtreecommitdiffstats
path: root/test/functional/files_controller_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-03-04 13:28:18 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-03-04 13:28:18 +0000
commit3aaf2b9ed00751d0aa793c98861513ac5302ec10 (patch)
treed497313144509b6bb0a43c2a10e395424549dcfe /test/functional/files_controller_test.rb
parentb1d5f42237295895412ff559f3f65a05cd65cf96 (diff)
downloadredmine-3aaf2b9ed00751d0aa793c98861513ac5302ec10.tar.gz
redmine-3aaf2b9ed00751d0aa793c98861513ac5302ec10.zip
Adds helpers for testing email body.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9086 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/files_controller_test.rb')
-rw-r--r--test/functional/files_controller_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/files_controller_test.rb b/test/functional/files_controller_test.rb
index e37cc855e..d05557990 100644
--- a/test/functional/files_controller_test.rb
+++ b/test/functional/files_controller_test.rb
@@ -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