Do routing specs support redirect routes? [RSpec]

前端 未结 5 1647
暗喜
暗喜 2021-02-05 02:49

After digging fairly deeply on this issue, I\'ve come to an impasse between my understanding of the documentation and my results.

According to https://www.relishapp.com/

5条回答
  •  失恋的感觉
    2021-02-05 03:12

    Andy Lindeman has the correct answer. However, you don't have to put the spec in spec/requests, you can keep it in spec/routing and be explicit with the metadata "type": describe 'my route', type: :request do

提交回复
热议问题