In Rails 3 when you use append_view_paths or prepend_view_path on a controller to change the view_path at runtime the views are rendering when render_views is false. This patch adds support to rspec-rails to stop the views from rendering.
Fix for append_view_path and prepend_view_path in Rails 3.
Should be fails
Removed the aliasing of the prepend and append view paths for view re…
I was already working on this locally before your last commit, so I'm gonna go w/ the first two and my changes (running suite now).
FYI - heading out for the eve so this won't get merged tonight, but I will be merging it in the next day or so.
Thanks for taking a looking at this so quickly. This was one of the final bugs we hit during a massive rails 3/rspec2 upgrade.
Override append/prepend_view_paths in controller specs
- inject rspec-rails' path delegator resolver
- Closes #359.
@amerine - thank @srbaker for pinging me about it :)
I made a few changes in the next commit: 7cd0f5e
Let me know if you have any questions.