[rspec-users] Refactoring's code needs refactoring's specs?

Matthias Hennemeyer mhennemeyer at googlemail.com
Tue Jun 10 02:58:23 EDT 2008


Pat Maddox posted about this: http://evang.eli.st/blog/2008/5/14/ 
refactoring-with-shared-example-groups

Matthias.

Am 10.06.2008 um 05:25 schrieb Gaston Ramos:

> Hi guys, I have one question:
>
> When refactoring the working code I need or should refactoring the  
> specs too?
>
> My old code is:
>
> http://pastie.org/private/gpskgtavm4yzutanq1ro3w
>
> My new refactored code:
>
> http://pastie.org/private/2emgi1hr5iga3m9jib4q
>
> and the specs that are still passing without refactoring:
>
> http://pastie.org/private/qn3uaoin0k2n8vjsusssg
>
> Regards.
>
>
>
> --
> "Most of you are familiar with the virtues of a programmer.  There  
> are three, of
> course: laziness, impatience, and hubris."
>
> (Larry Wall)
>
>
> +-------------------------------------+
> Gastón Ramos
> http://gastonramos.wordpress.com/
> GNU/Linux Counter user #450312
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users



More information about the rspec-users mailing list