I\'m working on upgrading from attachment_fu to carrierwave, since attachment_fu is broken in rails 3.
None of the tests are able to run, because we have invalid fixture
Try passing a file instead of a String.
a_image: post_id: 1 attachment_file: File.open(Rails.root.join("test/files/test.png"))
This works for me using FactoryGirl
Note: Edit thanks to @dkobozev