{"url":"https://falkenhagen.hatenadiary.org/entry/20090630/1246358495","width":"100%","height":"190","provider_url":"https://hatena.blog","blog_url":"https://falkenhagen.hatenadiary.org/","type":"rich","published":"2009-06-30 19:41:35","blog_title":"yet another \u65e5\u8a18","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffalkenhagen.hatenadiary.org%2Fentry%2F20090630%2F1246358495\" title=\"Setting the body of a POST request in a Rails integration test - yet another \u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":[],"image_url":null,"version":"1.0","description":"You might try to set the request object's RAW_POST_DATA as you do in a functional test, but this will fail.The following blog explains the solution: http://codemonky.com/post/8241251/integration-test-funBasically, you do something like this: body = \"this is what i want to post\" post \"/path\", body, {\u2026","author_name":"falkenhagen","provider_name":"Hatena Blog","title":"Setting the body of a POST request in a Rails integration test","author_url":"https://blog.hatena.ne.jp/falkenhagen/"}