Re: [rspec-users] executing code after each step of a story

2008-01-01 Thread Armin Joellenbeck
Hello and happy new year, David's answer and some digging in RDoc of RSpec has lead to the following code sceleton: class Listener def run_started(number_of_scenarios) end def run_ended end def story_started(title, description) end def story_ended(title, description) end

Re: [rspec-users] How to run stories with `spec' command?

2008-01-01 Thread Bryan Liles
On Dec 31, 2007, at 9:22 PM, Chiyuan Zhang wrote: Hmm, Thanks for your suggestion. I suppose the document of stories for rspec is not complete yet? Maybe the file layout suggestion could be included in the document. ps: Happy New Year to all! Stories are still a moving target. I was

Re: [rspec-users] Mocks? Really?

2008-01-01 Thread Francis Hwang
On Dec 31, 2007, at 1:10 PM, Zach Dennis wrote: I don't think it is designing less either. It's designing better and doing it smarter, knowing that you'll never fully comprehend the domain of your problem upfront, so you discover it, iteratively. As you discover more about the domain the

Re: [rspec-users] Mocks? Really?

2008-01-01 Thread Zach Dennis
On Jan 1, 2008 1:48 PM, Francis Hwang [EMAIL PROTECTED] wrote: On Dec 31, 2007, at 1:10 PM, Zach Dennis wrote: I don't think it is designing less either. It's designing better and doing it smarter, knowing that you'll never fully comprehend the domain of your problem upfront, so you

Re: [rspec-users] Do you think it would look cleaner?

2008-01-01 Thread Kero van Gelder
I was looking over some of my specs. I was thinking that the following: @game.should_receive(:name).and_return('The Battle for Blaze') @game.should_receive(:people).and_return(500) @game.should_receive(:activated).and_return(true) Would it look cleaner if I could do this instead?