test/model_test.rb in paperdragon-0.0.8 vs test/model_test.rb in paperdragon-0.0.9

- old
+ new

@@ -50,9 +50,15 @@ v.reprocess!(:thumb, "1") { |j| j.thumb!("8x8") } end model.image_meta_data.class.must_equal Hash model.image_meta_data.must_equal({:original=>{:width=>216, :height=>63, :uid=>"original-apotomo.png"}, :thumb=>{:width=>8, :height=>2, :uid=>"thumb-apotomo-1.png"}}) + + model.image do |v| + v.delete!(:thumb) + end + + model.image_meta_data.must_equal({:original=>{:width=>216, :height=>63, :uid=>"original-apotomo.png"}}) end # passing options from image(file, {..}) to the Attachment. class ImageWithAttachment < OpenStruct include Paperdragon::Model \ No newline at end of file