Re: [rspec-users] Cucumber: Group Given, Whens and Thens

2008-11-24 Thread Nicolás Sanguinetti
On Thu, Nov 20, 2008 at 8:05 PM, David Chelimsky <[EMAIL PROTECTED]> wrote: > On Thu, Nov 20, 2008 at 10:40 AM, Andrew Premdas <[EMAIL PROTECTED]> wrote: >> Also occasionally you may want to use a when as a given. Cucumber >> doesn't actually use the given|when|then|and to differentiate steps, >> j

Re: [rspec-users] Cucumber: Group Given, Whens and Thens

2008-11-24 Thread Andrew Premdas
Yeh that just shows how bad my grammer is! Saying that 'there is' / 'there are' is past tense, really meant 'something that has already happened' ... or 'states' as you so concisely put it :-) Thanks Andrew 2008/11/23 Peter Jaros <[EMAIL PROTECTED]>: > On Fri, Nov 21, 2008 at 4:35 AM, Andrew Pre

Re: [rspec-users] Cucumber: Group Given, Whens and Thens

2008-11-24 Thread Peter Jaros
On Fri, Nov 21, 2008 at 4:35 AM, Andrew Premdas <[EMAIL PROTECTED]> wrote: > Interesting ... so this establishes a convention to use in features > that all Givens are written in the past tense and all whens in the > present tense. Actually, I put both in the present tense, but Givens describe stat

Re: [rspec-users] Cucumber: Group Given, Whens and Thens

2008-11-23 Thread Pat Maddox
"David Chelimsky" <[EMAIL PROTECTED]> writes: > On Thu, Nov 20, 2008 at 10:40 AM, Andrew Premdas <[EMAIL PROTECTED]> wrote: >> Also occasionally you may want to use a when as a given. Cucumber >> doesn't actually use the given|when|then|and to differentiate steps, >> just the regex that comes afte

Re: [rspec-users] Cucumber: Group Given, Whens and Thens

2008-11-22 Thread Andrew Premdas
Interesting ... so this establishes a convention to use in features that all Givens are written in the past tense and all whens in the present tense. I think its quite important as your feature count grows that you have conventions to stop getting to much step duplication e.g. when I create a fo

Re: [rspec-users] Cucumber: Group Given, Whens and Thens

2008-11-21 Thread Andrew Premdas
DOH I thinks convention = I think this convention 2008/11/21 Andrew Premdas <[EMAIL PROTECTED]>: > Interesting ... so this establishes a convention to use in features > that all Givens are written in the past tense and all whens in the > present tense. > > I think its quite important as your featu

Re: [rspec-users] Cucumber: Group Given, Whens and Thens

2008-11-20 Thread Matt Wynne
On 20 Nov 2008, at 22:05, David Chelimsky wrote: On Thu, Nov 20, 2008 at 10:40 AM, Andrew Premdas <[EMAIL PROTECTED]> wrote: I actually prefer to keep these separate: Given I am logged in as Fred When I log in as Fred +1, though these days I would probably have the When step matcher call

Re: [rspec-users] Cucumber: Group Given, Whens and Thens

2008-11-20 Thread David Chelimsky
On Thu, Nov 20, 2008 at 10:40 AM, Andrew Premdas <[EMAIL PROTECTED]> wrote: > Also occasionally you may want to use a when as a given. Cucumber > doesn't actually use the given|when|then|and to differentiate steps, > just the regex that comes after them. Sometimes I feel that it makes > sense as in

Re: [rspec-users] Cucumber: Group Given, Whens and Thens

2008-11-20 Thread Andrew Premdas
Also occasionally you may want to use a when as a given. Cucumber doesn't actually use the given|when|then|and to differentiate steps, just the regex that comes after them. Sometimes I feel that it makes sense as in the following examples When I log in as Fred Given I log in as F

Re: [rspec-users] Cucumber: Group Given, Whens and Thens

2008-11-20 Thread Matt Wynne
Have a read of this: http://github.com/aslakhellesoy/cucumber/wikis/step-organisation Basically rather than saving your steps in files named around the feature, it's better to group them around the object(s) they work on. On 20 Nov 2008, at 15:28, aidy lewis wrote: Hi, Do you think this is

[rspec-users] Cucumber: Group Given, Whens and Thens

2008-11-20 Thread aidy lewis
Hi, Do you think this is a satisfactory way to group step files related to one feature e.g. publish_content_givens publish_content_whens publish_content_thens ? Thanks Aidy ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/