Topic: Testing Views that Presume a Controller
I'm sorry to ask so many questions but I feel Test::Rails is a valuable firewall against breakage, but the methodology and documentation is hard to find. Here's the current dilemma:
I have a view that lists affiliates. Each is rendered by a partial. There is an administrative and a user view. The view, then interrogates the controller to ask for the action_name, which clues it in to what it's supposed to render, especially on Ajax searches.
Using Test::Rails to test this view, I don't have a controller. Is there some best practice for this?
By the way, I'd like to write all this stuff down and post it if I can collect enough information. I think rcov, autotest and Test::Rails are great but people aren't making the kind of use of them they might if there were more nuts and bolts information available.
Thanks