about private method test

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