daociyiyou wrote: > For the methods defined as private,we need to test it? > For the reason that the private methods are used within the public > methods,so we need not to test the private methods as long as the > public methods are tested?
A very clear discussion of the topic by one of the best testers in the Ruby world (in my opinion): http://evang.eli.st/blog/2008/10/27/testing-protected-and-private-methods-in-ruby HTH Paul -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

