Lille
2011-Jun-06 11:44 UTC
quick question: are errors best checked on controllers by stubbing save/update_attributes?
Hi, Is it best to simulate errors in functional testing by stubbing the controller save/update_attributes to return false? Will I miss anything important if I always test controller behavior in the case of errors in this way? Thanks, Lille -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.