[rspec-users] attachment_fu and story runner, any updates

Ben Mabey ben at benmabey.com
Tue Feb 12 15:25:22 EST 2008


Rick DeNatale wrote:
> I've just submitted a rails patch
> http://dev.rubyonrails.org/ticket/11091
>
> This patches actionpack/lib/action_controller/integration.rb so that
> post and put requests automatically get turned into multipart form
> submission requests if they have a parameter or parameters which are
> instances of TestUploadedFile.
>
> This allows file uploading to be tested in integration controllers or
> RSpec stories.
>
> Please have a look if interested and verify the patch, looking for +1s
> on the Rails Trac
>   
Thanks Rick!
I'll check it out when I get a chance.  BTW, would you mind posting some 
example code of how you are using the story runner in testing a 
multi-part form?

Thanks,
Ben


More information about the rspec-users mailing list