Re: [rspec-users] BDD/Rails/Shoulda

2008-05-03 Thread John D. Hume
Even when working test/spec-first, when I'm pairing with someone who isn't experienced working that way, I find myself constantly saying I'm pretty sure we don't need that yet. (I've just written the spec my pair is trying to get passing, so I know how little code we need.) If it happens then,

Re: [rspec-users] BDD/Rails/Shoulda

2008-05-03 Thread Scott Taylor
On May 3, 2008, at 11:07 AM, John D. Hume wrote: Even when working test/spec-first, when I'm pairing with someone who isn't experienced working that way, I find myself constantly saying I'm pretty sure we don't need that yet. (I've just written the spec my pair is trying to get passing,

Re: [rspec-users] BDD/Rails/Shoulda

2008-05-03 Thread David Chelimsky
On May 3, 2008, at 4:01 PM, Scott Taylor wrote: I remember a joke that Aslak mentioned a while back ago on this list: He had a friend (or co-worker) who wanted to write a tool which would delete every line of code which didn't get covered with rcov. I found that remark funny because Aslak

Re: [rspec-users] BDD/Rails/Shoulda

2008-05-02 Thread Ashley Moran
On 2 May 2008, at 06:13, Tero Tilus wrote: I can well imagine how you may end up not getting all the advantages of BDD thru uncommenting process when you compare to clean BDD. But uncommenting is definitely better than writing spec on top of existing code, which in turn is _way_ better than

Re: [rspec-users] BDD/Rails/Shoulda

2008-05-01 Thread Tero Tilus
2008-04-30 15:51, Ashley Moran: about a month ago I was working on someone else's code and followed this process of uncommenting code as I wrote the specs for it (there were none for that class). I actually *removed* the 'if this_condition and that_condition' part of a line that follows the

Re: [rspec-users] BDD/Rails/Shoulda

2008-04-30 Thread Ashley Moran
On 28 Apr 2008, at 07:17, David Chelimsky wrote: Also, this approach increases the level of granularity from individual messages to complete statements. For example, let's say I have this line commented: # do_something if this_condition and that_condition If this_condition and

Re: [rspec-users] BDD/Rails/Shoulda

2008-04-28 Thread David Chelimsky
On Apr 24, 2008, at 5:57 PM, Ashley Moran wrote: Hi Matthew/Jonathan On Apr 24, 2008, at 6:58 pm, Jonathan Linowes wrote: I'm not sure this answers your questions, but you prompted me to share my experience. And this has prompted mine... I was going to do a blow-by-blow response to

Re: [rspec-users] BDD/Rails/Shoulda

2008-04-28 Thread Matthew Lins
Thanks for all of the great replies! This thread answered a lot of my questions. -Matt From: David Chelimsky [EMAIL PROTECTED] Reply-To: rspec-users rspec-users@rubyforge.org Date: Mon, 28 Apr 2008 01:17:17 -0500 To: rspec-users rspec-users@rubyforge.org Subject: Re: [rspec-users] BDD

Re: [rspec-users] BDD/Rails/Shoulda

2008-04-27 Thread Dan North
Hi Matthew. I don't think it's off-topic at all. I would estimate around 80% of the traffic on this list is about how do I test such-and-such with rails?. Rails is designed for a particular subset of web applications, namely ones that look a lot like basecamp. They mostly involve capturing,

Re: [rspec-users] BDD/Rails/Shoulda

2008-04-27 Thread Helder Ribeiro
On Sun, Apr 27, 2008 at 10:05 AM, Dan North [EMAIL PROTECTED] wrote: Hi Matthew. I don't think it's off-topic at all. I would estimate around 80% of the traffic on this list is about how do I test such-and-such with rails?. Rails is designed for a particular subset of web applications,

Re: [rspec-users] BDD/Rails/Shoulda

2008-04-25 Thread Ashley Moran
On 25 Apr 2008, at 00:59, Brian Takita wrote: This reminds me of Allister Cockburn's application of Shu Ha Ri in software development. http://alistair.cockburn.us/index.php/ASD_book_extract:_%22Unknowable_and_incommunicable%22 http://www.martinfowler.com/bliki/ShuHaRi.html

[rspec-users] BDD/Rails/Shoulda

2008-04-24 Thread Matthew Lins
This is a little off topic, but I use rSpec and I¹m starting to question the quality of my specs. In my research and attempt to learn how to write better specs, I¹ve came across a few things that I¹d like to discuss. I¹m having more and more difficulty understanding BDD. The more I read and the

Re: [rspec-users] BDD/Rails/Shoulda

2008-04-24 Thread Jonathan Linowes
I'm not sure this answers your questions, but you prompted me to share my experience. Personally i consider BDD just one tool in my toolbox. And I consider rspec to be as much a testing tool as a (BD)Development one. So I often find myself just taking the path of least resistance. And

Re: [rspec-users] BDD/Rails/Shoulda

2008-04-24 Thread Ashley Moran
Hi Matthew/Jonathan On Apr 24, 2008, at 6:58 pm, Jonathan Linowes wrote: I'm not sure this answers your questions, but you prompted me to share my experience. And this has prompted mine... I was going to do a blow-by-blow response to Matthew's post but I can probably sum up my current

Re: [rspec-users] BDD/Rails/Shoulda

2008-04-24 Thread Brian Takita
On Thu, Apr 24, 2008 at 3:57 PM, Ashley Moran [EMAIL PROTECTED] wrote: Hi Matthew/Jonathan On Apr 24, 2008, at 6:58 pm, Jonathan Linowes wrote: I'm not sure this answers your questions, but you prompted me to share my experience. And this has prompted mine... I was going to do a