{"comment":{"created_at":"2011-10-24T20:20:46Z","body":"the model has the following:\r\n\r\nvalidates :name, :presence => true, :length => { :maximum => 100 }\r\nvalidates :description, :presence => true, :length => { :maximum => 1000 }\r\nhas_attached_file :image, :styles => { :medium => [\"150x150#\", :png],\r\n                                         :thumb => [\"100x100#\", :png],\r\n                                         :list => [\"50x50#\", :png]\r\n\r\nvalidates_attachment_presence :image\r\nvalidates_attachment_content_type :image, :content_type => ['image/jpeg', 'image/png']\r\nvalidates_attachment_size :image, :less_than => 5.megabytes\r\n\r\nThe validations seem to be ok i.e. no errors when using the model. It's only the rspec test that throws the warning. The test does pass though - it's more of an annoyance than anything else.","updated_at":"2011-10-24T20:20:46Z","url":"https://api.github.com/repos/thoughtbot/paperclip/issues/comments/2508835","id":2508835,"user":{"avatar_url":"https://secure.gravatar.com/avatar/1f09085e3653acbd446d94f2a2227609?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"1f09085e3653acbd446d94f2a2227609","url":"https://api.github.com/users/adanacs","id":1141942,"login":"adanacs"}},"action":"created","issue":{"number":629,"created_at":"2011-10-20T22:40:56Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"when using\r\n\r\nModel: \r\nvalidates_attachment_size :photo, :less_than => 5.megabyte \r\n\r\nRspec:\r\nit { should validate_attachment_size(:image).less_than(5.megabytes) }\r\n\r\nThe test passes, but I get the following output to the screen (rather than just ..... for the tests passing)\r\n\r\nidentify: unable to open image `#<StringIO:0x9ab5398>':  @ error/blob.c/OpenBlob/2489.\r\nidentify: unable to open image `#<StringIO:0x9ab5398>':  @ error/blob.c/OpenBlob/2489.\r\nidentify: unable to open image `#<StringIO:0x9ab5398>':  @ error/blob.c/OpenBlob/2489.\r\nidentify: unable to open image `#<StringIO:0x9518b88>':  @ error/blob.c/OpenBlob/2489.\r\nidentify: unable to open image `#<StringIO:0x9518b88>':  @ error/blob.c/OpenBlob/2489.\r\nidentify: unable to open image `#<StringIO:0x9518b88>':  @ error/blob.c/OpenBlob/2489.\r\nidentify: unable to open image `#<StringIO:0x8f84104>':  @ error/blob.c/OpenBlob/2489.\r\nidentify: unable to open image `#<StringIO:0x8f84104>':  @ error/blob.c/OpenBlob/2489.\r\nidentify: unable to open image `#<StringIO:0x8f84104>':  @ error/blob.c/OpenBlob/2489.\r\nidentify: unable to open image `#<StringIO:0x8d54460>':  @ error/blob.c/OpenBlob/2489.\r\nidentify: unable to open image `#<StringIO:0x8d54460>':  @ error/blob.c/OpenBlob/2489.\r\nidentify: unable to open image `#<StringIO:0x8d54460>':  @ error/blob.c/OpenBlob/2489.\r\n\r\nidentify works from the linux (ubuntu) command line, everything else seems to work ok\r\n\r\nUsing ruby 1.9.2, paperclip 2.4.4, rails 3.1.0, rspec 2.7.0, shoulda-matchers 1.0.0.beta3","comments":2,"title":"shoulda matcher validate_attachment_size imagemagick error","updated_at":"2011-10-24T20:20:46Z","url":"https://api.github.com/repos/thoughtbot/paperclip/issues/629","id":2010477,"assignee":null,"milestone":null,"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/1f09085e3653acbd446d94f2a2227609?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"1f09085e3653acbd446d94f2a2227609","url":"https://api.github.com/users/adanacs","id":1141942,"login":"adanacs"},"html_url":"https://github.com/thoughtbot/paperclip/issues/629","labels":[],"state":"open"},"legacy":{"issue_id":2010477,"comment_id":2508835}}