Sha256: d8fb5e0ca4c260010e59635f328a72314b146067689a2ae1b3be68c26ae7ee66
Contents?: true
Size: 617 Bytes
Versions: 10
Compression:
Stored size: 617 Bytes
Contents
require 'test_helper' class S3ImageUploadTest < ActiveSupport::TestCase setup do load_s3 options = { :presets => [:small, :big] } @image = RailsUploads::Types::Image.new(fixture_file_upload('/image.jpg', 'image/jpeg'), options) @image.store end test "should save/destory main image and thumbs" do original = @image.url big = @image.url(:big) small = @image.url(:small) assert_object_s3 original assert_object_s3 big assert_object_s3 small @image.delete assert_not_object_s3 original assert_not_object_s3 big assert_not_object_s3 small end end
Version data entries
10 entries across 10 versions & 1 rubygems