Testing file uploads in Cucumber and Webrat
[2009-06-18]You can easily test file uploads in Cucumber with Webrat. But I encountered the problem that all my uploaded files had a text/plain mime-type. It turned out that you can give an optional parameter to specify the mime-type of an uploaded file.
So, now my step goes like this
attach_file file_input_field, file_path, mime_type
and it works ;-)
Comments
_
Want to leave a msg?
_
No comments yet...
Comments will be moderated before shown here, so please be patient.