[rspec-users] Getting Started with Story Runner

2007-09-20 Thread Andrew WC Brown
I haven't found any How To's to use story runner and I'm not sure how to get started. Should I be looking for resources on how to use rbehave? How do I generate my first Story? ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/ma

Re: [rspec-users] Getting Started with Story Runner

2007-09-20 Thread Ben Mabey
Andrew WC Brown wrote: > I haven't found any How To's to use story runner and I'm not sure how > to get started. > Should I be looking for resources on how to use rbehave? > How do I generate my first Story? > > > ___

Re: [rspec-users] Getting Started with Story Runner

2007-09-20 Thread James Hughes
On 9/20/07, Ben Mabey <[EMAIL PROTECTED]> wrote: > Andrew WC Brown wrote: > > I haven't found any How To's to use story runner and I'm not sure how > > to get started. > > Should I be looking for resources on how to use rbehave? > > How do I generate my first Story? > >

[rspec-users] FW: FW: Specifying spec and output format inline?

2007-09-20 Thread Adam Reed
One more try? I just want the script to save the rspec output to an html file when the script is run. In this case, the script will be run from SciTE using F5, rather than by command line. Is there a way to specify this within the ruby script? From: [EMAIL PR

Re: [rspec-users] FW: FW: Specifying spec and output format inline?

2007-09-20 Thread Cody P. Skidmore
Adam Reed wrote: > I just want the script to save the rspec output to an html file when the > script is run. In this case, the script will be run from SciTE using Adam, I don't know what O/S you're using, but I actually output my results to a HTML file stored in the public folder of my sandbox.

Re: [rspec-users] Getting Started with Story Runner

2007-09-20 Thread Andrew WC Brown
I'm guessing their isn't a generator for stories yet? ./script/generate story add_person On 9/20/07, James Hughes <[EMAIL PROTECTED]> wrote: > > On 9/20/07, Ben Mabey <[EMAIL PROTECTED]> wrote: > > Andrew WC Brown wrote: > > > I haven't found any How To's to use story runner and I'm not sure how

Re: [rspec-users] FW: FW: Specifying spec and output format inline?

2007-09-20 Thread Adam Reed
Thanks, I appreciate it! I'm using Windows XP. These test scripts will eventually be scheduled to be run automatically through a batch, where I assume I'll be able to use the normal command line functions to direct output, I just wanted to see if there was a way to do that from inside the script

Re: [rspec-users] alias :calling :lambda

2007-09-20 Thread Jed Hurt
I missed that one. I had a feeling that such a discussion must have already taken place, so I sent this suggestion with some trepidation. Having read the tracker comments, I empathize with David's and Aslak's sentiments. On 9/19/07, Jay Levitt <[EMAIL PROTECTED]> wrote: > On 9/19/2007 11:04 PM, S

Re: [rspec-users] Getting Started with Story Runner

2007-09-20 Thread Ben Mabey
Looking in the trunk I couldn't see any generators, for it. Looks like you found yourself a project ;) There is a simple new Story snippet in the textmate bundle in rspec's trunk however. -Ben Andrew WC Brown wrote: > I'm guessing their isn't a generator for stories yet? > > ./script/generate s

Re: [rspec-users] Getting Started with Story Runner

2007-09-20 Thread Jarkko Laine
On 20.9.2007, at 19.09, Ben Mabey wrote: > Looking in the trunk I couldn't see any generators, for it. Looks > like > you found yourself a project ;) > There is a simple new Story snippet in the textmate bundle in rspec's > trunk however. I just talked about this in Berlin with David. Heading

Re: [rspec-users] Strange error in StoryRunner (was: Mocks in StoryRunner)

2007-09-20 Thread James Hughes
On 9/19/07, James Hughes <[EMAIL PROTECTED]> wrote: > Hi, > I'm posting this stack trace again because it keeps popping up, > seemingly as the 'default error' when something is wrong with my story > code; for instance, I got it when I referenced a variable in my > 'Given' that I had forgotten to pa

Re: [rspec-users] Getting Started with Story Runner

2007-09-20 Thread Andrew WC Brown
I wouldn't mind in on that On 9/20/07, Jarkko Laine <[EMAIL PROTECTED]> wrote: > > > On 20.9.2007, at 19.09, Ben Mabey wrote: > > > Looking in the trunk I couldn't see any generators, for it. Looks > > like > > you found yourself a project ;) > > There is a simple new Story snippet in the textmat

[rspec-users] Standardize environment between specs containing class defs

2007-09-20 Thread Matt Margolis
I have some specs that involve the use of eval and class definitions to test code generation. I want to always start with a clean slate so none of my tests fail or succeed incorrectly due to artifacts left over from previous specs. Example of my situation Spec 1 defines class Fish c

Re: [rspec-users] Getting Started with Story Runner

2007-09-20 Thread Evan David Light
There are also a couple of examples buried in the trunk under examples/story/game-of-life/behaviour/stories On Sep 20, 2007, at 10:13 AM, Andrew WC Brown wrote: I'm guessing their isn't a generator for stories yet? ./script/generate story add_person On 9/20/07, James Hughes < [EMAIL PROTECT

Re: [rspec-users] Standardize environment between specs containing class defs

2007-09-20 Thread aslak hellesoy
You can have a global after block in your spec_helper.rb that undefines all such constants. Then you just have to remember to add these constants to some global array whenever you define them. a On 9/21/07, Matt Margolis <[EMAIL PROTECTED]> wrote: > I have some specs that involve the use of eval