I was able to use fixture_file_upload just fine with Rails3 and rspec.
I just added include ActionDispatch::TestProcess
to the spec_helper.rb, and then passed something like the following as the filedata:
fixture_file_upload(Rails.root.join("spec/support/test.png"), 'image/png')
EDIT: Something I upgraded changed the behavior of this to always include the fixtures path, so I switched to this instead of fixture_file_upload:
Rack::Test::UploadedFile.new(Rails.root.join("spec/support/test.png"), 'image/png')
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…