Hey guys,
I'm having a very tricky issue with the route matching in RSpec 2
(2.9.0)
I recently renamed a "resources" a route using ":path =>". My tests,
which were working before this change, are no longer able to recognize
the renamed route.
I've prepared a test-case illustrating the problem here:
https://gist.github.com/2495632
In a nutshell, I *always* get "No route matches
{:controller=>"health_quotes"}" even though A: I can access
health_quotes_url from within the spec, and B: I can do
Rails.application.routes.recognize_path("/health-insurance", :method
=> :get) and get valid routes.
All the routes work as expected when I run Webrick, and on the staging
server.
Does anyone have a clue what's going on here? Am I missing something
obvious, or is RSpec's route matching borked?
Thanks!
-W