Réactivation de tests commentés
This commit is contained in:
parent
3310ddb719
commit
512f32f8aa
|
@ -20,48 +20,48 @@ class EmailImporterTest < ActiveSupport::TestCase
|
||||||
assert_no_html email.plain_body
|
assert_no_html email.plain_body
|
||||||
end
|
end
|
||||||
|
|
||||||
# test "convert html to text when base64-encoded html only" do
|
test "convert html to text when base64-encoded html only" do
|
||||||
# email = email_from_eml("html_only_base64.eml")
|
email = email_from_eml("html_only_base64.eml")
|
||||||
#
|
|
||||||
# expected = /Type: Health and Safety/
|
expected = /Type: Health and Safety/
|
||||||
#
|
|
||||||
# assert_match(expected, email.plain_body)
|
assert_match(expected, email.plain_body)
|
||||||
# assert_no_html email.plain_body
|
assert_no_html email.plain_body
|
||||||
# end
|
end
|
||||||
#
|
|
||||||
# test "single delivered-to" do
|
test "single delivered-to" do
|
||||||
# email = email_from_eml("delivered_to_single.eml")
|
email = email_from_eml("delivered_to_single.eml")
|
||||||
#
|
|
||||||
# expected = ["delivered-to-1@example.com"]
|
expected = ["delivered-to-1@example.com"]
|
||||||
# actual = email.delivered_to
|
actual = email.delivered_to
|
||||||
#
|
|
||||||
# assert_equal expected, actual
|
assert_equal expected, actual
|
||||||
# end
|
end
|
||||||
#
|
|
||||||
# test "multiple delivered-to" do
|
test "multiple delivered-to" do
|
||||||
# email = email_from_eml("delivered_to_multiple.eml")
|
email = email_from_eml("delivered_to_multiple.eml")
|
||||||
#
|
|
||||||
# expected = ["delivered-to-1@example.com", "delivered-to-2@example.com", "delivered-to-3@example.com"]
|
expected = ["delivered-to-1@example.com", "delivered-to-2@example.com", "delivered-to-3@example.com"]
|
||||||
# actual = email.delivered_to
|
actual = email.delivered_to
|
||||||
#
|
|
||||||
# assert_equal expected, actual
|
assert_equal expected, actual
|
||||||
# end
|
end
|
||||||
#
|
|
||||||
# test "missing delivered-to fallback to To field" do
|
test "missing delivered-to fallback to To field" do
|
||||||
# email = email_from_eml("delivered_to_missing.eml")
|
email = email_from_eml("delivered_to_missing.eml")
|
||||||
#
|
|
||||||
# expected = ["to-foo@example.com"]
|
expected = ["to-foo@example.com"]
|
||||||
# actual = email.delivered_to
|
actual = email.delivered_to
|
||||||
#
|
|
||||||
# assert_equal expected, actual
|
assert_equal expected, actual
|
||||||
# end
|
end
|
||||||
#
|
|
||||||
# test "mail without content-type" do
|
test "mail without content-type" do
|
||||||
# email = email_from_eml("no_content_type.eml")
|
email = email_from_eml("no_content_type.eml")
|
||||||
#
|
|
||||||
# expected = /This is a RAID status update from megaraidsas-statusd/
|
expected = /This is a RAID status update from megaraidsas-statusd/
|
||||||
#
|
|
||||||
# assert_match(expected, email.plain_body)
|
assert_match(expected, email.plain_body)
|
||||||
# end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue