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

2007-12-31 Thread Chiyuan Zhang
Hi, all! I have a story steps array.rb and the story array.story. I can run it with ruby array.rb But when I execute spec array.rb nothing happened. I'm wondering how can I use spec command to execute stories? (executing examples is OK) Or maybe another question. If I have to run stories

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

2007-12-31 Thread aslak hellesoy
On Dec 31, 2007 11:55 AM, Chiyuan Zhang [EMAIL PROTECTED] wrote: Hi, all! I have a story steps array.rb and the story array.story. I can run it with ruby array.rb But when I execute spec array.rb nothing happened. I'm wondering how can I use spec command to execute stories? You

Re: [rspec-users] Mocks? Really?

2007-12-31 Thread Scott Taylor
On Dec 29, 2007, at 5:46 PM, Francis Hwang wrote: I don't know if anyone else will find this thought useful, but: I think different programmers have different situations, and they often force different sorts of priorities. I feel like a lot of the talk about mocking -- particularly as it

Re: [rspec-users] Mocks? Really?

2007-12-31 Thread Rick DeNatale
On Dec 30, 2007 10:09 PM, Francis Hwang [EMAIL PROTECTED] wrote: On Dec 30, 2007, at 9:38 PM, Jay Levitt wrote: Incidentally, how well-tested was that code base? 200 lines of copy- and-paste smells like untested code to me. 15-20 years ago, unit tests were not a widespread industry

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

2007-12-31 Thread Kero van Gelder
Hi! After a bit of digging in runners, I found that I need a formatter, really. now --format FORMAT:WHERE is explained properly by --help. --runner otoh, is not; see below. For the purpose of recording a user story (demo, webdemo), I run espeak for each step and then some. It seems to me, a

Re: [rspec-users] Mocks? Really?

2007-12-31 Thread Zach Dennis
On Dec 31, 2007 12:53 PM, Rick DeNatale [EMAIL PROTECTED] wrote: On Dec 30, 2007 10:09 PM, Francis Hwang [EMAIL PROTECTED] wrote: On Dec 30, 2007, at 9:38 PM, Jay Levitt wrote: Incidentally, how well-tested was that code base? 200 lines of copy- and-paste smells like untested code to

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

2007-12-31 Thread Bryan Liles
On Dec 31, 2007, at 5:55 AM, Chiyuan Zhang wrote: Hi, all! I have a story steps array.rb and the story array.story. I can run it with ruby array.rb But when I execute spec array.rb nothing happened. I'm wondering how can I use spec command to execute stories? (executing examples

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

2007-12-31 Thread Chiyuan Zhang
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! 2008/1/1, Bryan Liles [EMAIL PROTECTED]: On Dec 31, 2007, at 5:55 AM, Chiyuan Zhang wrote: Hi,