On Mon, Mar 24, 2008 at 7:49 PM, Chuck Remes <[EMAIL PROTECTED]> wrote:
>  Is this acceptable? I read through the "specs on private methods"
>  thread and the consensus was this should only be done when there is
>  *no other option*. Is there another option?

There's always another option, and anybody who says otherwise is flat
out wrong.  You can *always* test an object via its public interface.
If there's a private method that you want to test, but there's no way
to exercise it by the public interface, then that means the code is
not used and should be deleted.

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

Reply via email to