Re: [rspec-users] Multi-line steps

2008-04-11 Thread Ashley Moran
On 11 Apr 2008, at 03:03, Rick DeNatale wrote: > And I wouldn't think that most reasonable systems would disable > Lisa1's account because some Lisa2 tried and failed to use the same > name. Somebody, somewhere has built a system that does this. You know it. -- http://www.patchspace.co.uk

Re: [rspec-users] Multi-line steps

2008-04-10 Thread Rick DeNatale
On Thu, Apr 10, 2008 at 6:10 PM, Glenn Ford <[EMAIL PROTECTED]> wrote: Quoting Aslak > > Given the customers joe, paul and lisa are registered users > > When a user signs up as lisa > > Then the user should be informed that the name is taken > > And the user lisa should not be able to log in >

Re: [rspec-users] Multi-line steps

2008-04-10 Thread Glenn Ford
>> This actually sounds more confusing to me when viewed in the context >> of my own stories, and it seems similar to what's going on here. I >> write a lot about the user's interaction with the site and what >> should >> happen, so I have a lot of stories that look like: >> >> Given database is

Re: [rspec-users] Multi-line steps

2008-04-10 Thread Rick DeNatale
On Thu, Apr 10, 2008 at 5:25 PM, aslak hellesoy <[EMAIL PROTECTED]> wrote: > > This is a very "technical" way to express a scenario. It wouldn't make > much sense to a typical domain expert (unless they know about > databases). > I generally try to write scenarios using the domain language, >

Re: [rspec-users] Multi-line steps

2008-04-10 Thread aslak hellesoy
On Thu, Apr 10, 2008 at 7:28 PM, Glenn Ford <[EMAIL PROTECTED]> wrote: > > On Apr 9, 2008, at 5:04 PM, Pat Maddox wrote: > > > On 4/9/08, Ashley Moran <[EMAIL PROTECTED]> wrote: > >> > >> On 9 Apr 2008, at 14:14, aslak hellesoy wrote: > >> > >>> Just a style comment: I usually strive for a si

Re: [rspec-users] Multi-line steps

2008-04-10 Thread Ashley Moran
On 10 Apr 2008, at 18:28, Glenn Ford wrote: > Given database is in this state > When user does this stuff in browser > Then database should be in this new state I like the way you phrased this Glenn. Maybe the distinction is that Given is everything outside the control of the user, or, if th

Re: [rspec-users] Multi-line steps

2008-04-10 Thread Glenn Ford
On Apr 9, 2008, at 5:04 PM, Pat Maddox wrote: > On 4/9/08, Ashley Moran <[EMAIL PROTECTED]> wrote: >> >> On 9 Apr 2008, at 14:14, aslak hellesoy wrote: >> >>> Just a style comment: I usually strive for a single When (in this >>> case >>> Fred uploads the csv file). >>> The other ones are Givens

Re: [rspec-users] Multi-line steps

2008-04-09 Thread Ashley Moran
On 9 Apr 2008, at 22:04, Pat Maddox wrote: > Not bad, but perhaps misleading. Given is used to express > preconditions, wheras When is for an action. Her you are expressing > preconditions, even if those preconditions are action-based instead of > state-based (e.g. the known state of the work is

Re: [rspec-users] Multi-line steps

2008-04-09 Thread Pat Maddox
On 4/9/08, Ashley Moran <[EMAIL PROTECTED]> wrote: > > On 9 Apr 2008, at 14:14, aslak hellesoy wrote: > > > Just a style comment: I usually strive for a single When (in this case > > Fred uploads the csv file). > > The other ones are Givens. > > Hmm, I've written a lot of Selenium stories lately, a

Re: [rspec-users] Multi-line steps

2008-04-09 Thread Ashley Moran
On 9 Apr 2008, at 14:14, aslak hellesoy wrote: > Just a style comment: I usually strive for a single When (in this case > Fred uploads the csv file). > The other ones are Givens. Hmm, I've written a lot of Selenium stories lately, and they look like this: Given ... When the user visits

Re: [rspec-users] Multi-line steps

2008-04-09 Thread Ashley Moran
On 9 Apr 2008, at 11:31, Tim Haines wrote: > Hi Ashley, > > What's your use case? I'm curious... > > Tim. Hi Tim I've finally started writing a tool I've wanted for ages: a REAL database migration system, that works on a patch system with dependency tracking (like darcs), not a borked^H^H

Re: [rspec-users] Multi-line steps

2008-04-09 Thread Rick DeNatale
On Wed, Apr 9, 2008 at 9:14 AM, aslak hellesoy <[EMAIL PROTECTED]> wrote: > On Wed, Apr 9, 2008 at 2:59 PM, Rick DeNatale <[EMAIL PROTECTED]> wrote: > > On Wed, Apr 9, 2008 at 6:03 AM, Ashley Moran > > > > <[EMAIL PROTECTED]> wrote: > > > > > Hi > > > > > > I just wondered what the plan w

Re: [rspec-users] Multi-line steps

2008-04-09 Thread aslak hellesoy
On Wed, Apr 9, 2008 at 3:33 PM, David Chelimsky <[EMAIL PROTECTED]> wrote: > On Wed, Apr 9, 2008 at 9:14 AM, aslak hellesoy <[EMAIL PROTECTED]> wrote: > > I'm also interested in how we can do more FIT-like things using > > tables. But maybe that belongs in a different tool... > > Like, uh

Re: [rspec-users] Multi-line steps

2008-04-09 Thread David Chelimsky
On Wed, Apr 9, 2008 at 9:14 AM, aslak hellesoy <[EMAIL PROTECTED]> wrote: > I'm also interested in how we can do more FIT-like things using > tables. But maybe that belongs in a different tool... Like, uh FIT? I've been thinking of resurrecting the Ruby FIT project which seems to have no c

Re: [rspec-users] Multi-line steps

2008-04-09 Thread aslak hellesoy
On Wed, Apr 9, 2008 at 2:59 PM, Rick DeNatale <[EMAIL PROTECTED]> wrote: > On Wed, Apr 9, 2008 at 6:03 AM, Ashley Moran > > <[EMAIL PROTECTED]> wrote: > > > Hi > > > > I just wondered what the plan was for multi-line steps. Is anyone > > working on it? I've just come across a real use for it

Re: [rspec-users] Multi-line steps

2008-04-09 Thread Rick DeNatale
On Wed, Apr 9, 2008 at 6:03 AM, Ashley Moran <[EMAIL PROTECTED]> wrote: > Hi > > I just wondered what the plan was for multi-line steps. Is anyone > working on it? I've just come across a real use for it (including > small text files in the story). It' might be a little clunky, but I've recen

Re: [rspec-users] Multi-line steps

2008-04-09 Thread aslak hellesoy
On Wed, Apr 9, 2008 at 12:31 PM, Tim Haines <[EMAIL PROTECTED]> wrote: > Hi Ashley, > > What's your use case? I'm curious... > > Tim. > > I'm working on a Treetop (http://treetop.rubyforge.org/) implementation of the Story parser. Please file any suggestions for improvements to the story format t

Re: [rspec-users] Multi-line steps

2008-04-09 Thread Tim Haines
Hi Ashley, What's your use case? I'm curious... Tim. On 09/04/2008, Ashley Moran <[EMAIL PROTECTED]> wrote: > > Hi > > I just wondered what the plan was for multi-line steps. Is anyone > working on it? I've just come across a real use for it (including > small text files in the story). > > Ch

[rspec-users] Multi-line steps

2008-04-09 Thread Ashley Moran
Hi I just wondered what the plan was for multi-line steps. Is anyone working on it? I've just come across a real use for it (including small text files in the story). Cheers Ashley -- http://www.patchspace.co.uk/ http://aviewfromafar.net/ ___