[rspec-users] specs on private methods
kerry at kerrybuckley.com
Wed Jan 9 07:09:39 EST 2008
On Jan 9, 2008 10:01 AM, Stefan Magnus Landrø <stefan.landro at gmail.com> wrote:
> I totally agree with you, David!
> For quite a while I was testing all my methods (even had to declare them
> protected/package scope in java!), but I realized that I was getting into a
> lot of trouble. Now I've shifted to testing functionality in stead of
> Now, sometimes you might end up having small methods (typically a result of
> refactoring) that are being used by several clients. In that case you should
> start testing those methods, since they actually represent real business
I wonder whether that is a smell indicating that the functionality in
those methods really belongs in its own class?
More information about the rspec-users