File posts in integration test

It seems that my file data is being treating as a string or something.
Has anybody been able to do a file post in an integration test?

NoMethodError (undefined method original_filename' for "#<File: 0x316c300>":String): /app/models/attachment.rb:21:infile=’
send' /vendor/rails/activerecord/lib/active_record/base.rb:1846:inattributes=’
each' /vendor/rails/activerecord/lib/active_record/base.rb:1845:inattributes=’
initialize' /app/models/attachment.rb:11:ininitialize’

Actually, I just found this workaround to a rails bug:

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs