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 !
use the correct subclass for this spec
rsanheim (author)
Fri Mar 14 11:13:27 -0700 2008
commit  86aecc750d614e3836f868910cbcae388c9fd9d9
tree    324154e7ff7d896f9b64eb5be75b3b55776f64e8
parent  90d3e81793f2741c9cf0cdf28e9403e804486e93
...
201
202
203
204
 
 
205
206
207
208
209
 
210
211
212
...
201
202
203
 
204
205
206
207
208
209
 
210
211
212
213
0
@@ -201,12 +201,13 @@ class RmagickTest < Test::Unit::TestCase
0
     
0
     test_against_subclass :test_should_delete_file_when_in_file_system_when_attachment_record_destroyed, ImageWithThumbsFileAttachment
0
     
0
- def test_should_have_full_filename_method(klass = ImageWithThumbsAttachment)
0
+ def test_should_have_full_filename_method(klass = FileAttachment)
0
+ attachment_model klass
0
       attachment = upload_file :filename => '/files/rails.png'
0
       assert_respond_to attachment, :full_filename
0
     end
0
     
0
- test_against_subclass :test_should_have_full_filename_method, ImageWithThumbsAttachment
0
+ test_against_subclass :test_should_have_full_filename_method, FileAttachment
0
     
0
     def test_should_overwrite_old_thumbnail_records_when_updating(klass = ImageWithThumbsAttachment)
0
       attachment_model klass

Comments

    No one has commented yet.