Anita Anita <[EMAIL PROTECTED]> writes:

> Hi,
>
> Can I test private methods directly?
> Or should I pass by the methods that are calling these private methods?
> Or can I make the method private after testing?
> What is the best way?
>
> Thank you

The party line is not to test private methods.  Either test them
indirectly via a public method, or extract it to a separate object and
make it public there.

Pat
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to