If you don't want to include ActionDispatch::TestProcess
you can add files like this,
Factory.define :brand do |f|
f.name "My Brand"
f.description "Foo"
f.logo { Rack::Test::UploadedFile.new(File.join(Rails.root, 'spec', 'support', 'brands', 'logos', 'logo_image.jpg')) }
end
Then just include the file at that given path, in this case it would be spec/support/brands/logos/logo_image.jpg
This is how they suggest doing it on their wiki https://github.com/jnicklas/carrierwave/wiki/How-to%3A-Use-test-fixtures