Re: [rspec-users] fixture_scenarios problem

2009-01-21 Thread Scott Taylor
Giuseppe Bertini wrote: Hello there, is anyone still using fixture_scenarios with RSpec these days? They don't seem to coexist peacefully anymore. I just created a new rails (2.2.2) app, generated an rspec_scaffold (with v. 1.1.12), and verified that all specs pass. But if I then install the f

[rspec-users] [cucumber] Features with multiple use r iterations ¿?

2009-01-21 Thread Juanma Cervera
I am specing a feature, maybe at more high level of what it should be, and this makes scenarios that involves more that one rails controller. Is it possible or convenient? I have scenarios like this (although it's only an unreal example): Feature: Making a reservation for a service. Scenario:

Re: [rspec-users] [cucumber] Features with multipl e user iterations ¿?

2009-01-21 Thread David Chelimsky
On Wed, Jan 21, 2009 at 6:49 AM, Juanma Cervera wrote: > I am specing a feature, maybe at more high level of what it should be, > and this makes scenarios that involves more that one rails controller. > > Is it possible or convenient? > > I have scenarios like this (although it's only an unreal ex

[rspec-users] 'Then' after a 'When' and then a 'Then'?

2009-01-21 Thread aidy lewis
Hi, Is it bad form to use a 'Then' after a 'When' and then a 'Then'? When the CiP ingest checkbox is clicked Then '1 Spool(s) in Cart' should appear When the Add button is clicked Then an ingest user is on the BBC Cart page Or should I create a new scenario and use a 'Given'? Or can I hav

Re: [rspec-users] 'Then' after a 'When' and then a 'Then'?

2009-01-21 Thread aidy lewis
Hi, Apologies only just read the last post re: multiple iterations: please ignore. Aidy On 21/01/2009, aidy lewis wrote: > Hi, > > Is it bad form to use a 'Then' after a 'When' and then a 'Then'? > > When the CiP ingest checkbox is clicked > Then '1 Spool(s) in Cart' should appear > When

Re: [rspec-users] [cucumber] Features with multipl e us er iterations ¿?

2009-01-21 Thread Juanma Cervera
Thank you David. All make a lot of sense. With the urls I only was trying to clarify that the scenario spans across multiple controllers, but I am making the specs as you recommend. Juanma -- Posted via http://www.ruby-forum.com/. ___ rspec-users mai

Re: [rspec-users] [cucumber] Features with multipl e user iterations ¿?

2009-01-21 Thread Joseph Wilk
Juanma Cervera wrote: I am specing a feature, maybe at more high level of what it should be, and this makes scenarios that involves more that one rails controller. Is it possible or convenient? I do not think its a problem touching multiple controllers if that's what is required for the use

Re: [rspec-users] [cucumber] Features with multipl e user iterations ¿?

2009-01-21 Thread Zach Dennis
On Wed, Jan 21, 2009 at 9:35 AM, Joseph Wilk wrote: > Juanma Cervera wrote: >> >> I am specing a feature, maybe at more high level of what it should be, >> and this makes scenarios that involves more that one rails controller. >> >> Is it possible or convenient? >> >> > > I do not think its a prob

Re: [rspec-users] [cucumber] Features with multipl e user iterations ¿?

2009-01-21 Thread aidy lewis
Hi David, On 21/01/2009, David Chelimsky wrote: > text on the button that is deemed to have business value, then you > might say "And I click 'Request Service'" - but if you're referencing > DOM IDs or HTML element names like 'submit', I'd hide those. However we could get a lot of re-use in

Re: [rspec-users] [cucumber] Features with multipl e user iterations ¿?

2009-01-21 Thread David Chelimsky
On Wed, Jan 21, 2009 at 9:27 AM, aidy lewis wrote: > Hi David, > On 21/01/2009, David Chelimsky wrote: > >> text on the button that is deemed to have business value, then you >> might say "And I click 'Request Service'" - but if you're referencing >> DOM IDs or HTML element names like 'submit'

Re: [rspec-users] [cucumber] Features with multipl e user iterations ¿?

2009-01-21 Thread Andrew Premdas
Assuming that your steps are focused on using DOM Id's what sort of convention would you use to translate from the narrative of the step to the DOM id. Would you avoid the brittleness that "clicks submit link|button" has over "I submit". Thats me arguing that whether its a link or a button, and wh