How to handler-test file uploads?

In the past when I’ve done generic file uploads through a browser, it gets ring-interpreted into the `[:params :file]` path. Has anyone had success writing unit tests for the handler of such a route? Should I just write my own mock request map like:

{:params {:file {:filename "file.mp4"
		 :content-type "media/mp4"
		 :tempfile ( "/tmp/test.mp4")}}}

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.