diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-03-01 08:09:35 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-03-01 08:09:35 +0000 |
commit | 7cdce2aeac662bec58bfa4ff3be0af4cefd4d31e (patch) | |
tree | 5a06acdce5b6e32ea4f4dcee670fcc6766726b07 /test | |
parent | e70f7ba75ca858e3eef914d4183524bc189a99c2 (diff) | |
download | redmine-7cdce2aeac662bec58bfa4ff3be0af4cefd4d31e.tar.gz redmine-7cdce2aeac662bec58bfa4ff3be0af4cefd4d31e.zip |
Rails3: test: add .to_s for mail's bodies check at unit/repository_test.rb
On Rails3, mail's bodies must be checked calling 'encoded'.
'to_s' is alias of 'encoded' of Mail::Message of Rails3.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9035 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/repository_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/repository_test.rb b/test/unit/repository_test.rb index 9d31f0048..859fafc85 100644 --- a/test/unit/repository_test.rb +++ b/test/unit/repository_test.rb @@ -176,7 +176,7 @@ 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?( + assert mail.body.to_s.include?( "Status changed from #{old_status} to #{fixed_issue.status}") # ignoring commits referencing an issue of another project |