Sha256: 3b8a1bfe636cb287809a02c50498ec4b9e80743ba56bcad207a494f43f581036
Contents?: true
Size: 650 Bytes
Versions: 1
Compression:
Stored size: 650 Bytes
Contents
require 'test_helper' class GenerateTest < ActionDispatch::IntegrationTest include ActionDispatch::TestProcess setup :create_image test "should generate preset" do ::File.delete @image.realpath(:small) path = ::File.join('', 'uploads', 'images', 'small', @image.filename) get path assert_redirected_to path realpath = Rails.root.join('tmp', 'uploads', 'images', 'small', @image.filename) assert ::File.exists?(realpath) @image.delete end protected def create_image @image = RailsUploads::Types::Image.new(fixture_file_upload(::File.join('', 'image.jpg'), 'image/jpeg')) @image.store end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails_uploads-0.1.5 | test/generate_test.rb |