阅读背景:

为rspec测试rails临时设置Conside_all_requests_local

来源:互联网 

I have some custom 404 and 500 pages I want to test, but I need Rails.application.config.consider_all_requests_local to be false for feature testing temporarily, and then turn it back on after the test is complete so that other tests can see the stack trace if they fail during testing. Is there any way of doing so or is there possibly another solution to achieve what I'm looking for?I have some custom 404 and 500 pages I want to




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

分享到: