thoughtbot/paperclip — Issue #629: shoulda matcher validate_attachment_size imagemagick error
Author: adanacs
Created: 2011-10-20 22:40:56+00:00
State: open

when using

Model:
validates_attachment_size :photo, :less_than => 5.megabyte

Rspec:
it { should validate_attachment_size(:image).less_than(5.megabytes) }

The test passes, but I get the following output to the screen (rather than just ..... for the tests passing)

identify: unable to open image `#': @ error/blob.c/OpenBlob/2489.
identify: unable to open image `#': @ error/blob.c/OpenBlob/2489.
identify: unable to open image `#': @ error/blob.c/OpenBlob/2489.
identify: unable to open image `#': @ error/blob.c/OpenBlob/2489.
identify: unable to open image `#': @ error/blob.c/OpenBlob/2489.
identify: unable to open image `#': @ error/blob.c/OpenBlob/2489.
identify: unable to open image `#': @ error/blob.c/OpenBlob/2489.
identify: unable to open image `#': @ error/blob.c/OpenBlob/2489.
identify: unable to open image `#': @ error/blob.c/OpenBlob/2489.
identify: unable to open image `#': @ error/blob.c/OpenBlob/2489.
identify: unable to open image `#': @ error/blob.c/OpenBlob/2489.
identify: unable to open image `#': @ error/blob.c/OpenBlob/2489.

identify works from the linux (ubuntu) command line, everything else seems to work ok

Using ruby 1.9.2, paperclip 2.4.4, rails 3.1.0, rspec 2.7.0, shoulda-matchers 1.0.0.beta3