Fix unit test failures in basic_test.

Signed-off-by: rick <technoweenie@gmail.com>
This commit is contained in:
Hongli Lai (Phusion) 2008-09-23 20:47:18 +08:00 коммит произвёл rick
Родитель d55631d161
Коммит 806fb742ec
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -24,8 +24,8 @@ class BasicTest < Test::Unit::TestCase
def test_should_normalize_content_types_to_array
assert_equal %w(pdf), PdfAttachment.attachment_options[:content_type]
assert_equal %w(pdf doc txt), DocAttachment.attachment_options[:content_type]
assert_equal ['image/jpeg', 'image/pjpeg', 'image/gif', 'image/png', 'image/x-png', 'image/jpg'], ImageAttachment.attachment_options[:content_type]
assert_equal ['pdf', 'image/jpeg', 'image/pjpeg', 'image/gif', 'image/png', 'image/x-png', 'image/jpg'], ImageOrPdfAttachment.attachment_options[:content_type]
assert_equal Technoweenie::AttachmentFu.content_types, ImageAttachment.attachment_options[:content_type]
assert_equal ['pdf'] + Technoweenie::AttachmentFu.content_types, ImageOrPdfAttachment.attachment_options[:content_type]
end
def test_should_sanitize_content_type
@ -67,4 +67,4 @@ class BasicTest < Test::Unit::TestCase
klass.has_attachment :thumbnails => []
end
end
end
end