Stubbing controller actions in RSpec request specs

后端 未结 2 1311
时光说笑
时光说笑 2021-01-15 09:12

I am writing an API test case for server errors. I want to stub a controller action to raise an error to simulate the server error (500). In the requests spec, the con

2条回答
提交回复
热议问题