publish post: File upload in rails controller test case