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 the user  
set up the Given themself, all the stuff they *completed* in a  
previous session (no transition states).  What erked me about Pat's  
earlier suggestion was it felt like half the stuff the user did was in  
Given, which left the end of the Given section describing a state that  
a user could not find the system in.

I don't see that Given or Then has to be restricted to the database  
though - it could refer to the pre- or post-When state of an external  
web services, the contents in the browser, files read or written.   
Anything really.

Ashley

-- 
http://www.patchspace.co.uk/
http://aviewfromafar.net/



_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to