how can i write test cases for video and image uploads.
I am using attachment_fu plugin.
+ '/files/test.gif', 'image/gif')
post(:uploader, :file => get_file)
and then test if entries in your db are as expected and the file exists
in destination path