public
Fork of technoweenie/attachment_fu
Description: Treat an ActiveRecord model as a file attachment, storing its patch, size, content type, etc.
Homepage: http://weblog.techno-weenie.net
Clone URL: git://github.com/nicksieger/attachment_fu.git
add missing image/jpg content types from failing test [Giles Bowkett]


git-svn-id: 
http://svn.techno-weenie.net/projects/plugins/attachment_fu@3085 
567b1171-46fb-0310-a4c9-b4bef9110e78
technoweenie (author)
Mon Jan 07 15:11:32 -0800 2008
commit  5319e039c95522f7af22b35d42dd070d1ba775b1
tree    069c56059d0c380e4922d877eb50177725dbe2b2
parent  fd18b395c904393fa433cc76473b5af0333a2efd
...
24
25
26
27
28
 
 
29
30
31
...
24
25
26
 
 
27
28
29
30
31
0
@@ -24,8 +24,8 @@ class BasicTest < Test::Unit::TestCase
0
   def test_should_normalize_content_types_to_array
0
     assert_equal %w(pdf), PdfAttachment.attachment_options[:content_type]
0
     assert_equal %w(pdf doc txt), DocAttachment.attachment_options[:content_type]
0
- assert_equal ['image/jpeg', 'image/pjpeg', 'image/gif', 'image/png', 'image/x-png'], ImageAttachment.attachment_options[:content_type]
0
- assert_equal ['pdf', 'image/jpeg', 'image/pjpeg', 'image/gif', 'image/png', 'image/x-png'], ImageOrPdfAttachment.attachment_options[:content_type]
0
+ assert_equal ['image/jpeg', 'image/pjpeg', 'image/gif', 'image/png', 'image/x-png', 'image/jpg'], ImageAttachment.attachment_options[:content_type]
0
+ assert_equal ['pdf', 'image/jpeg', 'image/pjpeg', 'image/gif', 'image/png', 'image/x-png', 'image/jpg'], ImageOrPdfAttachment.attachment_options[:content_type]
0
   end
0
   
0
   def test_should_sanitize_content_type

Comments

    No one has commented yet.