Sha256: 69dcf0ad441a163162bcef567839836f42f38e69e4dadadc3842875d774bbbdc
Contents?: true
Size: 705 Bytes
Versions: 8
Compression:
Stored size: 705 Bytes
Contents
require 'spec_helper' describe Kuhsaft::Asset do before do Kuhsaft::AssetUploader.enable_processing = true @asset = Kuhsaft::Asset.new @uploader = Kuhsaft::AssetUploader.new(@asset, :file) @uploader.store!(File.open(File.join(Kuhsaft::Engine.root, 'spec', 'dummy', 'public', 'images', 'spec-image.png'))) end after do Kuhsaft::AssetUploader.enable_processing = false end it 'should scale down to fit into a 50x50 thumb' do @uploader.thumb.should have_dimensions(50, 50) end it "should make the image readable only to the owner and not executable" do pending 'how and where do we ensure permissions?' @uploader.should have_permissions(0600) end end
Version data entries
8 entries across 8 versions & 1 rubygems