Gaston Ramos
2008-Jun-10 03:25 UTC
[rspec-users] Refactoring''s code needs refactoring''s specs?
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
Matthias Hennemeyer
2008-Jun-10 06:58 UTC
[rspec-users] Refactoring''s code needs refactoring''s specs?
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