[rspec-users] specs on private methods

Scott Taylor mailing_lists at railsnewbie.com
Tue Jan 8 14:27:21 EST 2008

On Jan 8, 2008, at 2:20 PM, Ben Mabey wrote:

> Chris Olsen wrote:
>> How does a person test private methods?
>> Is there a way to declare them as private, but retain any tests that
>> were written during the initial development?
>> Thanks.
> When I need to do this I just use the send method.

But it will break in 1.9 and on!  (That's why Jay Fields didn't do it  
in his post).


More information about the rspec-users mailing list