阅读背景:

如何在RSpec Rails控制器测试中指定内容类型(和其他头部)和请求体?

来源:互联网 

I'm trying to test a rails action that takes raw json in the POST body. If i curl with the Content-Type: application/json header set, rails parses the params correctly.I'm trying to test a rails action that takes ra




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: