[rspec-users] Reusing story snippets

2008-06-14 Thread Mikel Lindsaar
I find myself doing this: Scenario logged in user visiting the home page do Given A logged in user do a_logged_in_user end When ... Then ... end The a_logged_in_user method is a helper method in helper.rb which sets up the state so that the user can browse the website. Later in the

Re: [rspec-users] Reusing story snippets

2008-06-14 Thread Kyle Hargraves
On Sat, Jun 14, 2008 at 5:03 AM, Mikel Lindsaar [EMAIL PROTECTED] wrote: I find myself doing this: Scenario logged in user visiting the home page do Given A logged in user do a_logged_in_user end When ... Then ... end The a_logged_in_user method is a helper method in helper.rb

Re: [rspec-users] Reusing story snippets

2008-06-14 Thread David Chelimsky
On Jun 14, 2008, at 5:03 AM, Mikel Lindsaar wrote: I find myself doing this: Scenario logged in user visiting the home page do Given A logged in user do a_logged_in_user end When ... Then ... end Things have evolved a bit since Story Runner first came out. The approach you are

[rspec-users] the Given, When, Then framework

2008-06-14 Thread aidy lewis
Hi, Is the Given, When, Then framework, the user story, the acceptance criteria or both? Aidy ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] the Given, When, Then framework

2008-06-14 Thread David Chelimsky
On Jun 14, 2008, at 12:50 PM, aidy lewis wrote: Hi, Is the Given, When, Then framework, the user story, the acceptance criteria or both? From my talk at railsconf: http://en.oreilly.com/rails2008/public/schedule/detail/2055 = Story: measure

Re: [rspec-users] the Given, When, Then framework

2008-06-14 Thread aidy lewis
Hi David, On 14/06/2008, David Chelimsky [EMAIL PROTECTED] wrote: On Jun 14, 2008, at 12:50 PM, aidy lewis wrote: Hi, Is the Given, When, Then framework, the user story, the acceptance criteria or both? From my talk at railsconf:

Re: [rspec-users] the Given, When, Then framework

2008-06-14 Thread David Chelimsky
On Jun 14, 2008, at 1:23 PM, aidy lewis wrote: Hi David, On 14/06/2008, David Chelimsky [EMAIL PROTECTED] wrote: On Jun 14, 2008, at 12:50 PM, aidy lewis wrote: Hi, Is the Given, When, Then framework, the user story, the acceptance criteria or both? From my talk at railsconf:

Re: [rspec-users] the Given, When, Then framework

2008-06-14 Thread aidy lewis
Hi David, On 14/06/2008, David Chelimsky [EMAIL PROTECTED] wrote: What is a negative scenario? Thanks for getting back. I have been asked that twice in 2 days! In the use-case world they have negative or mis-use cases. These cases desribe forbidden or wrong input into the system that has

Re: [rspec-users] the Given, When, Then framework

2008-06-14 Thread David Chelimsky
On Jun 14, 2008, at 1:43 PM, aidy lewis wrote: Hi David, On 14/06/2008, David Chelimsky [EMAIL PROTECTED] wrote: What is a negative scenario? Thanks for getting back. I have been asked that twice in 2 days! In the use-case world they have negative or mis-use cases. These cases desribe