Say I want to test this method:

def modify_user_status(user_id)
   ..
   ..

   user = User.find(user_id)
   ..
   ..
end


Now could I mock the call to User.find()?

I'm just trying to understand, when I run the test, and say I mocked the
call to User.find, then rspec realizes this and replaces it with the mocked
call.

Is this correct?
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to