Sha256: 119a145032e0209509b0472c48e4cba50cda9919950ec2bcdeb8bf2d8b255245
Contents?: true
Size: 701 Bytes
Versions: 3
Compression:
Stored size: 701 Bytes
Contents
require 'carrierwave/test/matchers' describe ReceiptUploader do include CarrierWave::Test::Matchers before do ReceiptUploader.enable_processing = true @uploader = ReceiptUploader.new @uploader.store!(File.open(Rails.root.join('..', 'assets', 'images', 'receipt.jpg'))) end after do ReceiptUploader.enable_processing = false @uploader.remove! end # context 'the thumb version' do # it "should scale down a landscape image to be exactly 64 by 64 pixels" do # @uploader.thumb.should have_dimensions(64, 64) # end # end it "should make the image readable only to the owner and not executable" do @uploader.should have_permissions(0600) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bookkeeper-0.0.7 | spec/uploaders/receipt_uploader_spec.rb |
bookkeeper-0.0.6 | spec/uploaders/receipt_uploader_spec.rb |
bookkeeper-0.0.5 | spec/uploaders/receipt_uploader_spec.rb |