Re: [rspec-users] StepGroup ?

2007-12-22 Thread Jonathan Linowes
On Dec 22, 2007, at 9:46 PM, David Chelimsky wrote: > On Dec 22, 2007 1:51 AM, Jonathan Linowes <[EMAIL PROTECTED]> > wrote: >> Hi, >> I have a need for the StepGroup feature in stories but not clear >> what's the current api. Could you provide an example? >> >> In my case I have several scenar

[rspec-users] rspec story directory structure

2007-12-22 Thread Bryan Liles
I've been thinking about the structure of the rspec story stuff, and I've come up with this for my first post: stories/ # top level to contain all of our story related stuff stories/helper.rb # top level helper stories/helpers/ # other helpers like custom matchers and other libs stories/st

Re: [rspec-users] StepGroup ?

2007-12-22 Thread David Chelimsky
On Dec 22, 2007 1:51 AM, Jonathan Linowes <[EMAIL PROTECTED]> wrote: > Hi, > I have a need for the StepGroup feature in stories but not clear > what's the current api. Could you provide an example? > > In my case I have several scenarios which vary in the Givens, but not > the results. Ideally I'm

Re: [rspec-users] StoryRunner docs/guidance

2007-12-22 Thread Andrew WC Brown
I never really thought of placing subdirectories in the stories directory. I guess that would be useful for separating your administrative stories for the back end of your app. I named my stories in the following convention: #role#_#action#_story.rb eg: user_creates_project_story.rb user_edits_p

Re: [rspec-users] StepGroup ?

2007-12-22 Thread Jonathan Linowes
Sorry, I guess stepgroup is the steps_for framework, and not what I'm asking about. Is there a way to hierarchically combine steps under a single step to achieve? On Dec 22, 2007, at 2:51 AM, Jonathan Linowes wrote: > Hi, > I have a need for the StepGroup feature in stories but not clear > w

Re: [rspec-users] Rails: Specing libraries

2007-12-22 Thread Chad Humphries
Caleb, In most cases you could just create a lib folder under spec with your new file in it. For example if you have: lib/my_extension.rb You would have: spec/lib/my_extension_spec.rb That starts out something like: require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') d

[rspec-users] Rails: Specing libraries

2007-12-22 Thread Caleb Land
I was reading the documentation on using rails with rspec and I didn't see anything about how to spec libraries in the rails /lib directory so that they're integrated into the whole spec::rails system. Where should I put specs for my libraries, and what's the best way to require the files that I'm

Re: [rspec-users] Story runner rake task

2007-12-22 Thread Bryan Helmkamp
On Dec 21, 2007 6:16 PM, James Deville <[EMAIL PROTECTED]> wrote: > Can you show me how you set up for webrat? I can't get the story > runner to recognize webrat. I have require 'webrat' in helper.rb, and > then I'm trying to use visits, and it fails! Actually, you shouldn't need to add an include