atom feed15 messages in com.madstop.puppet-users[Puppet-users] RSpec (was: Re: What ...
FromSent OnAttachments
Julian SimpsonMar 4, 2007 1:49 pm 
Luke KaniesMar 5, 2007 8:57 am 
Thomas LockneyMar 6, 2007 12:31 pm 
Julian SimpsonMar 6, 2007 12:49 pm 
Luke KaniesMar 7, 2007 8:22 am 
Julian SimpsonMar 7, 2007 12:53 pm 
John ArundelMar 7, 2007 1:09 pm 
Luke KaniesMar 7, 2007 1:57 pm 
Luke KaniesMar 7, 2007 1:59 pm 
John ArundelMar 7, 2007 2:26 pm 
Luke KaniesMar 11, 2007 12:53 pm 
Julian SimpsonMar 18, 2007 1:24 pm 
Julian SimpsonMar 18, 2007 1:56 pm 
David SchmittMar 18, 2007 2:36 pm 
Julian SimpsonMar 18, 2007 3:29 pm 
Subject:[Puppet-users] RSpec (was: Re: What I am doing with Puppet.)
From:John Arundel (jo@wordtracker.com)
Date:Mar 7, 2007 2:26:27 pm
List:com.madstop.puppet-users

On Wed, 2007-03-07 at 15:59 -0600, Luke Kanies wrote:

Yeah, I keep meaning to start using this some, but it hasn't seemed as hugely beneficial as I would like. I'm assuming I'll get around to it one of these days, but I'm secretly hoping that someone else (*cough*mpalmer*cough*) will start using it and I can just take advantage of it.

I really like it. I just started using it recently and I'm finding it a much more natural and expressive way to write my tests - 'specification, not verification'. Instead of merely verifying that your code behaves correctly, you are specifying what it means for your code to behave correctly. RSpec's grammar encourages you to write specifications in a straightforward, human-readable way. It's quite possible for a non-programmer to look at a well-written set of specs and understand what the application is supposed to do.

I hear people asking 'So what does RSpec do that Test::Unit doesn't?' It's the wrong question (the answer is 'Nothing, except integrate support for some useful tools like RCov and Heckle').

The right question is 'Am I writing better tests with RSpec, and am I enjoying it more?' ('Yes, and yes.')

This is a good article explaining the merits of BDD: http://blog.daveastels.com/files/BDD_Intro.pdf

J