[rspec-users] StepGroup ?

2007-12-21 Thread Jonathan Linowes
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 hoping to achieve something like: (but anything will do for now :) Scenar

Re: [rspec-users] StoryRunner docs/guidance

2007-12-21 Thread Jonathan Linowes
I just went through this myself yesterday, and was considering posting an article on my blog, but figured it'd be too short lived, once the doc page is up on the rspec site. So I'll post here what I've cobbled together from various other articles, emails, and generous help on #rspec. 1. DE

Re: [rspec-users] Story runner rake task

2007-12-21 Thread James Deville
On Dec 19, 2007, at 10:42 PM, David Chelimsky wrote: > On Dec 20, 2007 12:25 AM, James Deville <[EMAIL PROTECTED]> > wrote: >> >> >> On Dec 19, 2007, at 10:16 PM, David Chelimsky wrote: >> >>> On Dec 19, 2007 11:50 PM, James Deville <[EMAIL PROTECTED]> >>> wrote: On Dec 19, 2007,

Re: [rspec-users] StoryRunner docs/guidance

2007-12-21 Thread Kerry Buckley
On 21 Dec 2007, at 19:59, Jonathan Leighton wrote: > Hi all, > > Are there any plans for better documentation for the new StoryRunner > feature? I tried to use it today (with Rails), and had a hard time > getting my head around whether I was doing it "right" and exactly what > things are appropria

Re: [rspec-users] StoryRunner docs/guidance

2007-12-21 Thread Nathan Sutton
Yeah, this is truly needed, you have a second from me. Nathan Sutton [EMAIL PROTECTED] rspec 1.1 rspec_on_rails 1.1 rails 2.0.1 On Dec 21, 2007, at 1:59 PM, Jonathan Leighton wrote: > Hi all, > > Are there any plans for better documentation for the new StoryRunner > feature? I tried to use it to

[rspec-users] StoryRunner docs/guidance

2007-12-21 Thread Jonathan Leighton
Hi all, Are there any plans for better documentation for the new StoryRunner feature? I tried to use it today (with Rails), and had a hard time getting my head around whether I was doing it "right" and exactly what things are appropriate to test at that level (this might be exacerbated by the fact

Re: [rspec-users] I need some guidance

2007-12-21 Thread Scott Taylor
> to stub or mock this in some way. I think I just need some > guidance on how to approach something like this. > > Do I just ignore the implementation details? > Do I push the actual posting of data to a private method and mock > that method so that I can verify that it is being called? > Wou

Re: [rspec-users] I need some guidance

2007-12-21 Thread jimmy zimmerman
Thanks Pat, When I wrote my first message, I think I was missing a big part of the Mock/Stub capabilities. I thought you could only stub or mock methods of a particular instance that had been set up already in the spec. However, I realize now that you can also stub/mock class methods. I think my

Re: [rspec-users] I need some guidance

2007-12-21 Thread Scott Taylor
On Dec 21, 2007, at 1:30 PM, jimmy zimmerman wrote: > I'm building an http communicator class for a web service API > wrapper and I'm trying to go through the BDD process in doing so. > I'm having a bit of a struggle figuring out how to set up the tests > in relation to isolating things app

Re: [rspec-users] I need some guidance

2007-12-21 Thread Pat Maddox
On Dec 21, 2007 10:30 AM, jimmy zimmerman <[EMAIL PROTECTED]> wrote: > I'm building an http communicator class for a web service API wrapper and > I'm trying to go through the BDD process in doing so. I'm having a bit of a > struggle figuring out how to set up the tests in relation to isolating > t

[rspec-users] I need some guidance

2007-12-21 Thread jimmy zimmerman
I'm building an http communicator class for a web service API wrapper and I'm trying to go through the BDD process in doing so. I'm having a bit of a struggle figuring out how to set up the tests in relation to isolating things appropriately as well as testing behavior vs testing implementation. S