Re: [rspec-users] stubbing association methods in controller spec

2009-08-04 Thread norm
that worked! thanks David, your help is much appreciated ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] stubbing association methods in controller spec

2009-08-04 Thread David Chelimsky
On Thu, Jul 30, 2009 at 6:13 PM, norm wrote: > I have two models: >  Student has_many=>:grad_surveys >    and >  GradSurvey belongs_to=>:student > > I am testing the GradSurveysController#update method with > >  it "should only allow update if the correct token is presented" do >   �...@params = {:

[rspec-users] stubbing association methods in controller spec

2009-07-30 Thread norm
I have two models: Student has_many=>:grad_surveys and GradSurvey belongs_to=>:student I am testing the GradSurveysController#update method with it "should only allow update if the correct token is presented" do @params = {:id=>"1", :token=>"ab56e1b47", :survey=>{}} @mock_grad_s