- an ActiveRecord class
- should respond to upload_column
- should reflect on upload_columns
- should reset upload columns
- an Active Record class with an upload_column
- should add accessor methods
- should save the name of the column to be reflected upon
- should save the options to be reflected upon
- an Active Record with no upload_column
- should have no uploads_column
- should be instantiable
- uploading a file
- should pass it to UploadedFile and remember it
- should set the attribute on the ActiveRecord
- uploading an empty String
- should do nothing
- shouldn't affect an already uploaded file
- setting nil explicitly
- should reset the column
- an upload_column with a value stored in the database and no uploaded_file
- should retrieve the file from the database
- saving uploaded files
- should call save on the uploaded file if they are temporary files
- should not call save on the uploaded file if they are not temporary files
- should happen automatically
- fetching a temp value
- should fetch the value from the uploaded file
- assigning a tempfile
- should not override a new file
- should override a file that is not new
- should set the file if there is none
- assigning nil to temp
- should do nothing
- assigning a blank string to temp
- should do nothing
- an upload column with no file
- should return no value
- should return no temp_value
- should return nothing in the _public_path method
- should return nothing in the _path method
- an upload column with an uploaded file
- should delegate the _public_path method to the column
- should delegate the _path method to the column
- an upload column with different versions and no uploaded file
- should return nil for the _thumb method
- should return nil for the _large method
- should return nil for the _thumb_url method
- should return nil for the _large_path method
- an upload column with different versions and an uploaded file
- should delegate the _thumb method to the column
- should delegate the _large method to the column
- should delegate the _thumb_url method to the column
- should delegate the _large_path method to the column
- uploading a file that fails an integrity check
- should set the column to nil
- should fail an integrity validation
- UploadColumn::ActiveRecordExtension::ClassMethods.image_column
- should call an upload column with some specialized options
- UploadColumn::ActiveRecordExtension::ClassMethods.validate_integrity
- should change the options for this upload_column
- UploadColumn::Manipulators::ImageScience#resize!
- should preserve the aspect ratio if the image is too wide
- should preserve the aspect ratio if the image is too narrow
- should rescale to the exact size if the aspect ratio is the same
- should not exceed the dimensions if the image is a rather weird size
- UploadColumn::Manipulators::ImageScience#crop_resized!
- should crop and resize an image that is too tall
- should crop and resize an image that is too tall
- should crop and resize an image with the correct aspect ratio
- should crop and resize an image with weird dimensions
- UploadColumn::Manipulators::ImageScience#process!
- should resize the image if a string like '333x444' is passed
- should crop and resize the image if a string like 'c333x444' is passed
- should do nothing if :none is passed
- normally instantiating and saving a record
- shouldn't fail
- uploading a single file
- should set the correct path
- should copy the file to temp.
- should set the correct url
- uploading a file and then saving the record
- should set the correct path
- should copy the file to the correct location
- should set the correct url
- should save the filename to the database
- uploading a file with versions
- should set the correct path
- should copy the file to temp.
- should set the correct url
- uploading a file with versions and then saving the record
- should set the correct path
- should copy the file to the correct location.
- should set the correct url
- should save the filename to the database
- assigning a file from temp with versions
- should set the correct path
- should set the correct url
- assigning a file from temp with versions and then saving the record
- should set the correct path
- should copy the file to the correct location.
- should set the correct url
- should save the filename to the database
- an upload_column with an uploaded file
- should not be overwritten by an empty String
- should not be overwritten by an empty StringIO
- should not be overwritten by an empty file
- should be overwritten by another file
- should be marshallable
- uploading an image with several versions, the rmagick manipulator and instructions to rescale
- should set the correct path
- should copy the files to temp.
- should set the correct url
- should preserve the main file
- should change the versions
- should rescale the images to the correct sizes
- uploading a file with an extension that is not in the whitelist
- should add an error to the record
- should be reversible by uploading a valid file
- uploading a file with magic columns
- should automatically set the image path
- should automatically set the image size
- should automatically set the image public path
- should ignore columns whose names aren't methods on the column
- assigning a file from tmp with magic columns
- should automatically set the image size
- should automatically set the image path
- should automatically set the image public path
- should ignore columns whose names aren't methods on the column
- uploading and saving a file with magic columns
- should automatically set the image size
- should automatically set the image path
- should automatically set the image public path
- should ignore columns whose names aren't methods on the column
- should ignore columns who already have a value set
- assigning a file from tmp and saving it with magic columns
- should automatically set the image size
- should automatically set the image path
- should automatically set the image public path
- should ignore columns whose names aren't methods on the column
- uploading a file with a filename instruction
- should give it the correct filename
- should give it the correct path
- uploading a file with a complex filename instruction
- should give it the correct filename
- should have correct paths
- should remember the original filename
- should store the _original_ filename in the database
- UploadColumn::MagicColumns.set_upload_column_with_magic_columns
- should assign methods from the uploaded file to database columns
- should do nothing when the column names do not exist on the object
- UploadColumn::MagicColumns.set_upload_column_temp_with_magic_columns
- should assign methods from the uploaded file to database columns
- should do nothing when the column names do not exist on the object
- UploadColumn::MagicColumns.save_uploaded_files_with_magic_columns
- should reevaluate magic columns
- should do nothing when the column names do not exist on the object
- UploadColumn::Manipulators::RMagick#manipulate!
- should yield the first frame of the image and then save the result, for a single-framed image
- should yield all frames and save the result, for a multi-framed image
- should raise an more meaningful error if something goes wrong
- UploadColumn::Manipulators::RMagick#resize!
- should use rmagick to resize the image to the appropriate size
- UploadColumn::Manipulators::RMagick#crop_resized!
- should use rmagick to resize and crop the image to the appropriate size
- UploadColumn::Manipulators::RMagick#convert!
- should use rmagick to change the image format
- UploadColumn::Manipulators::RMagick#process!
- should resize the image if a string like '333x444' is passed
- should crop and resize the image if a string like 'c333x444' is passed
- should pass on a proc to manipulate!
- should yield to manipulate! if a block is given
- should resize first and then yield to manipulate! if both a block and a size string are given
- should do nothing if :none is passed
- creating a new SanitizedFile
- should yield an empty file on empty String, nil, empty StringIO
- should yield a non empty file
- should not change a valid filename
- should remove illegal characters from a filename
- should remove slashes from the filename
- should remove illegal characters if there is no extension
- should remove the path prefix on Windows
- should make sure the *nix directory thingies can't be used as filenames
- should downcase uppercase filenames
- a sanitized Tempfile
- should not be empty
- should return the original filename
- should return the filename
- should return the basename
- should return the extension
- should be moved to the correct location
- should have changed its path when moved
- should have changed its filename when moved
- should have split the filename when moved
- should be copied to the correct location
- should not have changed its path when copied
- should not have changed its filename when copied
- should return an object of the same class when copied
- should adjust the path of the object that is returned when copied
- should adjust the filename of the object that is returned when copied
- should split the filename of the object that is returned when copied
- should not raise an error when moved to its own location
- should return a new instance when copied to its own location
- should exist
- should return the correct path
- a sanitized StringIO
- should not be empty
- should return the original filename
- should return the filename
- should return the basename
- should return the extension
- should be moved to the correct location
- should have changed its path when moved
- should have changed its filename when moved
- should have split the filename when moved
- should be copied to the correct location
- should not have changed its path when copied
- should not have changed its filename when copied
- should return an object of the same class when copied
- should adjust the path of the object that is returned when copied
- should adjust the filename of the object that is returned when copied
- should split the filename of the object that is returned when copied
- should not exist
- should return no path
- a sanitized File object
- should not be empty
- should return the original filename
- should return the filename
- should return the basename
- should return the extension
- should be moved to the correct location
- should have changed its path when moved
- should have changed its filename when moved
- should have split the filename when moved
- should be copied to the correct location
- should not have changed its path when copied
- should not have changed its filename when copied
- should return an object of the same class when copied
- should adjust the path of the object that is returned when copied
- should adjust the filename of the object that is returned when copied
- should split the filename of the object that is returned when copied
- should not raise an error when moved to its own location
- should return a new instance when copied to its own location
- should exits
- should return correct path
- a SanitizedFile opened from a path
- should not be empty
- should return the original filename
- should return the filename
- should return the basename
- should return the extension
- should be moved to the correct location
- should have changed its path when moved
- should have changed its filename when moved
- should have split the filename when moved
- should be copied to the correct location
- should not have changed its path when copied
- should not have changed its filename when copied
- should return an object of the same class when copied
- should adjust the path of the object that is returned when copied
- should adjust the filename of the object that is returned when copied
- should split the filename of the object that is returned when copied
- should not raise an error when moved to its own location
- should return a new instance when copied to its own location
- should exits
- should return correct path
- an empty SanitizedFile
- should be empty
- should not exist
- should have no size
- should have no path
- should have no original filename
- should have no filename
- should have no basename
- should have no extension
- a SanitizedFile
- should properly split into basename and extension
- should do a system call
- a SanizedFile with a complex filename
- properly split into basename and extension
- The mime-type of a Sanitized File
- should be determined via *nix exec
- shouldn't choke up when the *nix exec errors out
- should otherwise be loaded from MIME::Types
- should be taken from the browser if all else fails
- a SanitizedFile with a wrong extension
- should fix extention if fix_file_extensions is true
- should not fix extention if fix_file_extensions is false
- copying a sanitized Tempfile with permissions set
- should set the right permissions
- copying a sanitized StringIO with permissions set
- should set the right permissions
- copying a sanitized File object with permissions set
- should set the right permissions
- copying a sanitized file by path with permissions set
- should set the right permissions
- moving a sanitized Tempfile with permissions set
- should set the right permissions
- moving a sanitized StringIO with permissions set
- should set the right permissions
- moving a sanitized File object with permissions set
- should set the right permissions
- moving a sanitized file by path with permissions set
- should set the right permissions
- UploadColumn
- should have a default configuration
- should have a list of allowed extensions
- should have a list of allowed image extensions
- UploadColumn.configure
- should yield a configuration proxy
- should change the configuration of a known option
- should change the configuration of an unknown option
- uploading a file
- should trigger an _after_upload callback
- an uploaded tempfile
- should not be empty
- should return the correct filesize
- should return the original filename
- should return the filename
- should return the basename
- should return the extension
- should return the correct path
- should return the correct relative_path
- should return correct dir
- an uploaded StringIO
- should not be empty
- should return the correct filesize
- should return the original filename
- should return the filename
- should return the basename
- should return the extension
- should return the correct path
- should return the correct relative_path
- should return correct dir
- an uploaded File object
- should not be empty
- should return the correct filesize
- should return the original filename
- should return the filename
- should return the basename
- should return the extension
- should return the correct path
- should return the correct relative_path
- should return correct dir
- an uploaded non-empty String
- should raise an error
- an uploded empty file
- should return nil
- an UploadedFile
- should have the correct relative store dir
- should have the correct store dir
- should have the correct relative tmp dir
- should have the correct tmp dir
- should return something sensible on inspect
- an UploadedFile where store_dir is a String
- should have the correct relative store dir
- should have the correct store dir
- an UploadedFile where tmp_dir is a String
- should have the correct relative tmp dir
- should have the correct tmp dir
- an UploadedFile where filename is a String
- should have the correct filename
- should remember the actual filename
- should have versions with the correct filename
- an UploadedFile where filename is a Proc with the record piped in
- should have the correct filename
- should remember the actual filename
- should have versions with the correct filename
- an UploadedFile where filename is a Proc with the record and file piped in
- should have the correct filename
- should remember the actual filename
- should have versions with the correct filename
- an UploadedFile with a filename callback
- should have the correct filename
- should remember the actual filename
- should have versions with the correct filename
- uploading an UploadedFile where filename is a Proc
- should have the correct filename
- should remember the actual filename
- should have versions with the correct filename
- should have a correct path
- should have versions with correct paths
- an UploadedFile where store_dir is a simple Proc
- should have the correct relative store dir
- should have the correct store dir
- an UploadedFile where tmp_dir is a simple Proc
- should have the correct relative tmp dir
- should have the correct tmp dir
- an UploadedFile where store_dir is a Proc and has the record piped in
- should have the correct relative store dir
- should have the correct store dir
- an UploadedFile where tmp_dir is a Proc and has the record piped in
- should have the correct relative tmp dir
- should have the correct tmp dir
- an UploadedFile where store_dir is a Proc and has the record and file piped in
- should have the correct relative store dir
- should have the correct store dir
- an UploadedFile where tmp_dir is a Proc and has the record and file piped in
- should have the correct relative tmp dir
- should have the correct tmp dir
- an UploadedFile with a store_dir callback
- should have the correct relative store dir
- should have the correct store dir
- an UploadedFile with a tmp_dir callback
- should have the correct relative tmp dir
- should have the correct tmp dir
- an UploadedFile that has just been uploaded
- should not be empty
- should return the correct filesize
- should return the original filename
- should return the filename
- should return the basename
- should return the extension
- should be new
- should be a tempfile
- should exist
- should be stored in tmp
- saving an UploadedFile
- should return true
- should copy the file to the correct location
- a saved UploadedFile
- should not be empty
- should return the correct filesize
- should return the original filename
- should return the filename
- should return the basename
- should return the extension
- should not be new
- should not be a tempfile
- should return the correct path
- should return the correct relative_path
- should return the correct dir
- an UploadedFile with a manipulator
- should extend the object with the manipulator methods.
- an UploadedFile with a manipulator and versions
- should extend the object with the manipulator methods.
- should extend the versions with the manipulator methods.
- an UploadedFile with a manipulator with dependencies
- should extend the object with the manipulator methods and load dependencies.
- an UploadedFile with a manipulator and process instruction
- should process before iterating versions
- an UploadedFile with no versions
- should not respond to version methods
- an UploadedFile with versions with illegal names
- should raise an ArgumentError
- an UploadedFile with versions
- should respond to version methods
- should return an UploadedFile instance when a version method is called
- a version of an uploaded UploadedFile
- should return the filename including the version
- should return the basename without the version
- should return the extension
- should return the correct suffix
- should not be empty
- should return the correct filesize
- should return the original filename
- uploading a file with versions as a Hash
- should process the files with the manipulator
- an version of an UploadedFile with versions as a hash
- should return the filename including the version
- should return the basename without the version
- should return the extension
- should return the correct suffix
- should not be empty
- should return the original filename
- a retrieved UploadedFile
- should not be empty
- should return the correct filesize
- should return the original filename
- should return the filename
- should return the basename
- should return the extension
- should not be new
- should not be a tempfile
- should return the correct path
- a version of a retrieved UploadedFile
- should return the filename including the version
- should return the basename without the version
- should return the extension
- should return the correct suffix
- should not be new
- should not be a tempfile
- should return the correct path
- a version of a saved UploadedFile
- should return the filename including the version
- should return the basename without the version
- should return the extension
- should return the correct suffix
- should not be new
- should not be a tempfile
- should return the correct path
- opening a temporary UploadedFile
- should raise an error if the path is incorrectly formed
- should raise an error if its in a subdirectory
- should raise an error if its relative
- should raise an error if the filename is omitted
- should not raise an error on nil
- should not raise an error on empty String
- a retrieved temporary UploadedFile
- should not be empty
- should return the correct filesize
- should return the original filename
- should return the filename
- should return the basename
- should return the extension
- should not be new
- should be a tempfile
- should return the correct path
- a retrieved temporary UploadedFile with an appended original filename
- should not be new
- should be a tempfile
- should return the correct original filename
- should return the correct path
- a version of a retrieved temporary UploadedFile
- should return the filename including the version
- should return the basename without the version
- should return the extension
- should return the correct suffix
- should not be new
- should be a tempfile
- should return the correct path
- uploading a file with validate_integrity set to true
- should raise an error if no extensions are set
- should not raise an error if the extension is in extensions
- should raise an error if the extension is not in extensions
- An UploadedFile with no web_root set
- should return the correct URL and to_s
- An UploadedFile with no web_root set and MS style slashes in its relative path
- should return the correct URL and to_s
- An UploadedFile with an absolute web_root set
- should return the correct URL and to_s
- An UploadedFile with an absolute web_root set and MS style slashes in its relative path
- should return the correct URL and to_s
- An UploadedFile with a web_root set
- should return the correct URL
- the temp_value of an UploadedFile without an original filename
- should match the TempValueRegexp
- should end in the filename
- the temp_value of an UploadedFile with a different orignal filename
- should match the TempValueRegexp
- should append the original_filename
- the temp_value of a retrieved temporary UploadedFile
- should be mainatained
- the temp_value of an UploadedFile that is not temporary
- should be mainatained