back out from r9031 to r9036

On Rails3, 'to_s' is not alias of 'encoded'.
'to_s' is alias of 'decoded'.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9037 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA
2012-03-01 11:40:22 +00:00
parent 30ce0cd8fb
commit 2df6c99e67
6 changed files with 14 additions and 14 deletions

View File

@@ -191,7 +191,7 @@ class UsersControllerTest < ActionController::TestCase
mail = ActionMailer::Base.deliveries.last
assert_not_nil mail
assert_equal [user.mail], mail.bcc
assert mail.body.to_s.include?('secret')
assert mail.body.include?('secret')
end
def test_create_with_failure
@@ -252,7 +252,7 @@ class UsersControllerTest < ActionController::TestCase
mail = ActionMailer::Base.deliveries.last
assert_not_nil mail
assert_equal ['foo.bar@somenet.foo'], mail.bcc
assert mail.body.to_s.include?(ll('fr', :notice_account_activated))
assert mail.body.include?(ll('fr', :notice_account_activated))
end
def test_update_with_password_change_should_send_a_notification
@@ -266,7 +266,7 @@ class UsersControllerTest < ActionController::TestCase
mail = ActionMailer::Base.deliveries.last
assert_not_nil mail
assert_equal [u.mail], mail.bcc
assert mail.body.to_s.include?('newpass')
assert mail.body.include?('newpass')
end
test "put :update with a password change to an AuthSource user switching to Internal authentication" do