In a controller test we had an assertion:
Which resulted in the following error
Failure/Error: Unable to find matching line from backtrace stack level too deep
Seems like there might be two issues here:
If some_route_path method is available why isn't polymorphic path available as well? (maybe this is not the job of the expectations code)
Why is it stack overflowing in method_missing? If I remove the assertion and just reduce the line to "polymorphic_path(@some_object)" I get the same thing.
This is on Rails 3.0.3 and rspec 2.1.0 and Ruby 1.9.2-p0
Let me know if you need any other details.
re: #2, that is a bug that's been fixed by rspec-core-2.2.1 and rspec-rails-2.2.1
re: #1, not sure but that would most likely be a rails issue. Do you get a different response from a rails functional test?
Having not heard back in a couple of months I'm going to close this now. If it's still a problem for you, please answer my question about getting a diff response in a functional test and I'll be glad to reopen it.