Re: [rspec-users] polymorphic controller testing

2009-08-26 Thread john
hi rick,thanks for responsding. You're right, I realized that all i had to do was stub a method inside that controller and just call SchedulesController from the spec. On Wed, Aug 26, 2009 at 3:54 PM, john wrote: > I was hoping that I could set the controller name as "MeetingsController" > whic

Re: [rspec-users] polymorphic controller testing

2009-08-26 Thread john
I was hoping that I could set the controller name as "MeetingsController" which would be a polymorphic type of the Schedules controller? On Wed, Aug 26, 2009 at 3:48 PM, Rick DeNatale wrote: > On Wed, Aug 26, 2009 at 2:39 PM, john wrote: > > Hi Rspec Community, > > I ran into an interesting probl

Re: [rspec-users] polymorphic controller testing

2009-08-26 Thread Rick DeNatale
On Wed, Aug 26, 2009 at 2:39 PM, john wrote: > Hi Rspec Community, > I ran into an interesting problem yesterday. > I'm using polymorphic_path for my controller, but I can't figure out how to > test it. > > # routes.rb > map.resources :schedules > ma