mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
minor change to content type checking to make it more flexible when utf8 is returned
Signed-off-by: José Valim <jose.valim@gmail.com>
This commit is contained in:
parent
81926c2cd2
commit
a6a018253e
3 changed files with 3 additions and 3 deletions
|
@ -23,7 +23,7 @@ class ConfirmationInstructionsTest < ActionMailer::TestCase
|
|||
end
|
||||
|
||||
test 'content type should be set to html' do
|
||||
assert_equal 'text/html', mail.content_type
|
||||
assert mail.content_type.include?('text/html')
|
||||
end
|
||||
|
||||
test 'send confirmation instructions to the user email' do
|
||||
|
|
|
@ -27,7 +27,7 @@ class ResetPasswordInstructionsTest < ActionMailer::TestCase
|
|||
end
|
||||
|
||||
test 'content type should be set to html' do
|
||||
assert_equal 'text/html', mail.content_type
|
||||
assert mail.content_type.include?('text/html')
|
||||
end
|
||||
|
||||
test 'send confirmation instructions to the user email' do
|
||||
|
|
|
@ -27,7 +27,7 @@ class UnlockInstructionsTest < ActionMailer::TestCase
|
|||
end
|
||||
|
||||
test 'content type should be set to html' do
|
||||
assert_equal 'text/html', mail.content_type
|
||||
assert mail.content_type.include?('text/html')
|
||||
end
|
||||
|
||||
test 'send unlock instructions to the user email' do
|
||||
|
|
Loading…
Reference in a new issue