technoweenie/attachment_fu

attachment_fu + factory_girl

sdhull opened this issue · 2 comments

Seems like this should be working, unfortunately I can't get it to stop telling me:
ActiveRecord::RecordInvalid: Validation failed: Content type is not included in the list

I'm thinking this is because it depends on the content-type of the request header which isn't necessarily available when creating things in factories...

Some help would be greatly appreciated.

Thanks,
Steve

Hah apparently I just needed to glance at the source code properly, setting content_type to "image/jpeg" worked quite nicely.

You'll have to set it if nothing else is setting it.