making two requests to the same controller in rails integrations specs

后端 未结 5 2045
鱼传尺愫
鱼传尺愫 2021-02-12 19:17

I\'m having problem making two requests to the same url in a rails integration test, with rspec

it \'does something\' do

  # get \'/something\', {:status=>\'         


        
5条回答
  •  孤街浪徒
    2021-02-12 19:53

    I don't think the problem is that you are getting the same response, it is that you are actually sending the same request twice.

    The following works for me when I want to make two requests in the same test: @request.delete_header 'RAW_POST_DATA'

提交回复
热议问题