To post a solution to my problem:

describe "PUT 'update'" do
    before(:each) do

      User.should_receive(:find).with(:first, 
{:conditions=>{:id=>@user.id}}).and_return(@user)
      User.should_receive(:find).with(@user).and_return(@user)
    end
    .
    .
    .

The first line is for the authentication.

-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to