public
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/technoweenie/attachment_fu.git
Click here to lend your support to: attachment_fu and make a donation at www.pledgie.com !
added tests
iffy (author)
Sun Jun 01 20:13:35 -0700 2008
technoweenie (committer)
Mon Jun 02 11:11:48 -0700 2008
commit  d433f786c8a9c28de82ae416bab66261666b1c68
tree    c05bcd3569c14fa1be4b3027c69e0eafdfa97670
parent  d10004bfec5e954dd46915792783657b2d06aecc
...
43
44
45
 
 
 
46
47
48
...
43
44
45
46
47
48
49
50
51
0
@@ -43,6 +43,9 @@ class BasicTest < Test::Unit::TestCase
0
     @attachment.filename = 'f o!O-.bar'
0
     assert_equal 'f_o_O-.bar', @attachment.filename
0
     
0
+ @attachment.filename = 'sheeps_says_bææ'
0
+ assert_equal 'sheeps_says_b__', @attachment.filename
0
+
0
     @attachment.filename = nil
0
     assert_nil @attachment.filename
0
   end

Comments

    No one has commented yet.