Quick question: are errors best checked on controllers by stubbing save/update_attributes?


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?



This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs