Rails RSpec Routing: Testing actions in :except do NOT route

后端 未结 2 371
不知归路
不知归路 2021-01-12 05:14

Fairly simple problem (I\'d have thought), but I\'m having some issues:

In Rails 3.1.0.rc6/RSpec 2.6.0, I\'m trying to test the routing of my \'products\' resource,

2条回答
  •  死守一世寂寞
    2021-01-12 05:45

    Do you have a fallback route? Because that would explain why no error is thrown, but indeed trying to evaluate route_to("products#edit", :id => 1) would raise, because the route does not exist.

提交回复
热议问题