attachment_fu + factory_girl
sdhull opened this issue · 2 comments
sdhull commented
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
sdhull commented
Hah apparently I just needed to glance at the source code properly, setting content_type to "image/jpeg" worked quite nicely.
technoweenie commented
You'll have to set it if nothing else is setting it.