Using the correct url_for method in a Rails engine spec

前端 未结 4 1360
自闭症患者
自闭症患者 2020-12-15 21:27

I have a request spec in a Rails engine. The view that is rendered calls a route and passes in a hash, i.e. projects_path(:scope => \"user\"). A route like t

4条回答
  •  暖寄归人
    2020-12-15 21:42

    include ActionView::Helpers::UrlHelper -> In my case, this was the line that i had to search and comment.

提交回复
热议问题