Re: [rspec-users] passing parameters when testing controller actions

2009-07-29 Thread David Chelimsky
On Wed, Jul 29, 2009 at 8:51 AM, norm wrote: > wow, thanks for the tips David. I'm using both the stub!() and the > should_receive() because, as a complete RSpec neophyte, that's what I > thought was required! (And it seemed to work, too!). > > I didn't suspect the controller code, because it's cod

Re: [rspec-users] passing parameters when testing controller actions

2009-07-29 Thread norm
wow, thanks for the tips David. I'm using both the stub!() and the should_receive() because, as a complete RSpec neophyte, that's what I thought was required! (And it seemed to work, too!). I didn't suspect the controller code, because it's code that works. But with your suggestion, I found the di

Re: [rspec-users] passing parameters when testing controller actions

2009-07-29 Thread David Chelimsky
On Tue, Jul 28, 2009 at 1:44 PM, norm wrote: > My grad_surveys_controller has a student_edit method. An id parameter > is passed in the url and a token is passed in a query string. For > example: >           > http://www.example.com/students/34/grad_surveys/21/student_edit?token=ab56e1b47 > so the

[rspec-users] passing parameters when testing controller actions

2009-07-28 Thread norm
My grad_surveys_controller has a student_edit method. An id parameter is passed in the url and a token is passed in a query string. For example: http://www.example.com/students/34/grad_surveys/21/student_edit?token=ab56e1b47 so the params hash should contain {"controller"=>"grad_surveys"