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
For me, the issue was caused by passing a hash as the second argument of a link_to line.
<%= link_to('click me', {one: params[:one], two: params[:two]}) %>
wrapping the hash in the actual path method for the page fixed the issue
<%= link_to('click me', actual_path({one: params[:one], two: params[:two]})) %>