Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix unit test failures in basic_test.

Signed-off-by: rick <technoweenie@gmail.com>
  • Loading branch information...
commit 806fb742ecdb53227610b9a7fc67fdd176d3f271 1 parent d55631d
@FooBarWidget FooBarWidget authored committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 test/basic_test.rb
View
6 test/basic_test.rb
@@ -24,8 +24,8 @@ def test_should_set_default_thumbnail_class
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 @@ def test_should_require_valid_thumbnails_option
klass.has_attachment :thumbnails => []
end
end
-end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.