[rspec-users] Stories location

2007-10-14 Thread Steve
Should the stories dir be located on the project root? I was expecting to find it located under spec/ but there isn't anything there, just the stories dir off of /. Also there don't appear to be any rake tasks for stories, nor generators. Should there be any? Thanks, Steve ___

Re: [rspec-users] Step matchers

2007-10-14 Thread Pat Maddox
On 10/14/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > On 10/14/07, Pat Maddox <[EMAIL PROTECTED]> wrote: > > Actually a parser for this would be quite simple > > Dead simple. It would also allow us to do away with methods like > Given, When and Then, which some people have objected to (because

Re: [rspec-users] Step matchers

2007-10-14 Thread Pat Maddox
On 10/14/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > On 10/14/07, Pat Maddox <[EMAIL PROTECTED]> wrote: > > On 10/14/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > > > On 10/14/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > > > > On 10/14/07, Pat Maddox <[EMAIL PROTECTED]> wrote: > > > > >

Re: [rspec-users] Step matchers

2007-10-14 Thread David Chelimsky
On 10/14/07, Pat Maddox <[EMAIL PROTECTED]> wrote: > On 10/14/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > > On 10/14/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > > > On 10/14/07, Pat Maddox <[EMAIL PROTECTED]> wrote: > > > > I think we all know that the readability of steps isn't great rig

Re: [rspec-users] Step matchers

2007-10-14 Thread Jay Levitt
On 10/14/2007 8:09 PM, Pat Maddox wrote: > In general, I prefer your syntax, making it look like a plain-text > spec instead of Ruby code. I question whether it's a big enough win > to justify writing a parser instead of simply writing valid Ruby. ANT-LR! ANT-LR! ANT-LR! Jay ___

Re: [rspec-users] Step matchers

2007-10-14 Thread Pat Maddox
On 10/14/07, Pat Maddox <[EMAIL PROTECTED]> wrote: > On 10/14/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > > On 10/14/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > > > On 10/14/07, Pat Maddox <[EMAIL PROTECTED]> wrote: > > > > I think we all know that the readability of steps isn't great rig

Re: [rspec-users] Step matchers

2007-10-14 Thread Pat Maddox
On 10/14/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > On 10/14/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > > On 10/14/07, Pat Maddox <[EMAIL PROTECTED]> wrote: > > > I think we all know that the readability of steps isn't great right > > > now, and in fact there's a very recent thread that

Re: [rspec-users] Step matchers

2007-10-14 Thread David Chelimsky
On 10/14/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > On 10/14/07, Pat Maddox <[EMAIL PROTECTED]> wrote: > > I think we all know that the readability of steps isn't great right > > now, and in fact there's a very recent thread that discusses just > > that. It was that recent thread that prompt

Re: [rspec-users] Story Runner: Readability of output with multiple params

2007-10-14 Thread David Chelimsky
On 10/14/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > On 10/14/07, Zach Dennis <[EMAIL PROTECTED]> wrote: > > On 10/14/07, Pat Maddox <[EMAIL PROTECTED]> wrote: > > > On 10/14/07, Zach Dennis <[EMAIL PROTECTED]> wrote: > > > > Does it add any value to even add things like "Joe" and "Acme" into

Re: [rspec-users] Step matchers

2007-10-14 Thread David Chelimsky
On 10/14/07, Pat Maddox <[EMAIL PROTECTED]> wrote: > I think we all know that the readability of steps isn't great right > now, and in fact there's a very recent thread that discusses just > that. It was that recent thread that prompted me to explore this a > bit. > > The basic idea is that you de

Re: [rspec-users] Story Runner: Readability of output with multiple params

2007-10-14 Thread David Chelimsky
On 10/14/07, Zach Dennis <[EMAIL PROTECTED]> wrote: > On 10/14/07, Pat Maddox <[EMAIL PROTECTED]> wrote: > > On 10/14/07, Zach Dennis <[EMAIL PROTECTED]> wrote: > > > Does it add any value to even add things like "Joe" and "Acme" into a > > > story part? It seems like that is an implementation deta

[rspec-users] Step matchers

2007-10-14 Thread Pat Maddox
I think we all know that the readability of steps isn't great right now, and in fact there's a very recent thread that discusses just that. It was that recent thread that prompted me to explore this a bit. The basic idea is that you define step matchers, which have a regex, and then you match ste

Re: [rspec-users] Story Runner: Readability of output with multiple params

2007-10-14 Thread Zach Dennis
On 10/14/07, Pat Maddox <[EMAIL PROTECTED]> wrote: > On 10/14/07, Zach Dennis <[EMAIL PROTECTED]> wrote: > > Does it add any value to even add things like "Joe" and "Acme" into a > > story part? It seems like that is an implementation detail of your > > story. > > > > Who cares about "Joe" or "Acme

Re: [rspec-users] Story Runner: Readability of output with multiple params

2007-10-14 Thread Pat Maddox
On 10/14/07, Zach Dennis <[EMAIL PROTECTED]> wrote: > Does it add any value to even add things like "Joe" and "Acme" into a > story part? It seems like that is an implementation detail of your > story. > > Who cares about "Joe" or "Acme", don't you just care that you have a > user who works for a c

Re: [rspec-users] Story Runner: Readability of output with multiple params

2007-10-14 Thread Zach Dennis
Does it add any value to even add things like "Joe" and "Acme" into a story part? It seems like that is an implementation detail of your story. Who cares about "Joe" or "Acme", don't you just care that you have a user who works for a company. And if that company has a particular trait wouldn't it

Re: [rspec-users] locals in partials

2007-10-14 Thread David Chelimsky
On 10/12/07, Hans de Graaff <[EMAIL PROTECTED]> wrote: > On Fri, 2007-10-12 at 12:47 -0400, Jonathan Linowes wrote: > > that works for you? > > I'm basically doing the same thing but the > > > >render "/pages/_page_menu.html.erb", :locals => { :pages => @foo } > > render :partial => 'pages/page

Re: [rspec-users] Edge rspec - running Test::Unit tests

2007-10-14 Thread David Chelimsky
On 10/12/07, Alvin Schur <[EMAIL PROTECTED]> wrote: > With rspec 1.0.8 I can run Test::Unit tests and rspec tests using: > > rake default > > and all tests and specs run. > > > With edge rspec the Test::Unit tests return with the message: > > [list of tests] > > Finished in 4.5e-05 seco

Re: [rspec-users] stubbing a method that yeilds sequential results

2007-10-14 Thread rupert
On 14 Oct 2007, at 08:28, Mikel Lindsaar wrote: > On 8/13/07, rupert <[EMAIL PROTECTED]> wrote: >> On 12 Aug 2007, at 14:38, David Chelimsky wrote: However, what I actually need to do is check each result that is yielded by the Connector.each_result method and compare it to the pre

Re: [rspec-users] stubbing a method that yeilds sequential results

2007-10-14 Thread Mikel Lindsaar
On 8/13/07, rupert <[EMAIL PROTECTED]> wrote: > On 12 Aug 2007, at 14:38, David Chelimsky wrote: > >> However, what I actually need to do is check each result that is > >> yielded by the Connector.each_result method and compare it to the > >> previous one. If they are sufficiently similar I need t