Skip to content

Commit

Permalink
Fix unit test failures in basic_test.
Browse files Browse the repository at this point in the history
Signed-off-by: rick <technoweenie@gmail.com>
  • Loading branch information
FooBarWidget authored and technoweenie committed Feb 13, 2009
1 parent d55631d commit 806fb74
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/basic_test.rb
Expand Up @@ -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
Expand Down Expand Up @@ -67,4 +67,4 @@ def test_should_require_valid_thumbnails_option
klass.has_attachment :thumbnails => []
end
end
end
end

0 comments on commit 806fb74

Please sign in to comment.