Fix unit test failures in basic_test.
Signed-off-by: rick <technoweenie@gmail.com>
This commit is contained in:
Родитель
d55631d161
Коммит
806fb742ec
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче