在我的葡萄/Rails应用程序中,我已经在ApplicationController中实现了维护模式,所以当该模式处于活动状态时,它将从应用程序中的任何位置重定向到maintenance_mode_path如何迫使rspec在一段时间内处于不同的端点。api/v1/new_endpoint,而整个测试是在MaintenanceModeController中进行的?active' do
context 'when c
我试图使用rspec向控制器中的操作发出post请求,这应该会返回一个JSON响应。这是我当前的测试代码,它使用了。我不确定我的代码:
it "creates JSON format metadata with facebook post social message info about social accountx-www-form-urlencoded'}).to_return(:stat