Topic: How would you rspec test nested controllers

Hi there,

Can anyone point me to examples of testing nested controllers please?
I'm new to rspec so not finding the syntax easy!

Scenario is:
- Client and Trip models are related through TripClients (has many through).
- Trips are nested within Clients in the urls, eg: /clients/1/trips/new.
- Additionally, each Trip has many TripElement objects.

I found these articles but could not quite follow them enough to adapt to my scenario:
http://railsforum.com/viewtopic.php?id=35632
http://railstips.org/blog/archives/2008 … ith-rspec/

Many thanks
George

Re: How would you rspec test nested controllers

Here George here's an example of an index action.

http://www.vaporbase.com/postings/Rspec … dex_action

Joseph DelCioppio
Synantus Designs