aidy lewis
2009-Jan-21 13:57 UTC
[rspec-users] ''Then'' after a ''When'' and then a ''Then''?
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 have a Given after a ''Then'' in the same scenario? Or should each scenerio follow ''Given''...''When''...''Then''? Cheers Aidy
aidy lewis
2009-Jan-21 14:16 UTC
[rspec-users] ''Then'' after a ''When'' and then a ''Then''?
Hi, Apologies only just read the last post re: multiple iterations: please ignore. Aidy On 21/01/2009, aidy lewis <aidy.lewis at googlemail.com> 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 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 have a Given after a ''Then'' in the same scenario? > > Or should each scenerio follow ''Given''...''When''...''Then''? > > Cheers > > > Aidy >