Re: [rspec-users] How should you make sure the user is not authenticated

2009-07-27 Thread Stephen Eley
On Mon, Jul 27, 2009 at 12:39 PM, Marcelo de Moraes Serpa wrote: > > So, it is not a matter of "checking the user is not authenticated", > but of "setting the ground and making sure the user is not > authenticated", which of course, means loggin out the user on this > given step to make sure it is

[rspec-users] How should you make sure the user is not authenticated

2009-07-27 Thread Marcelo de Moraes Serpa
Hey list! Let's say I have a user story for authentication/login. I have seen many cucumber scenarios like this: Scenario: User logs in succesfully Given I am not authenticated When I go to the login page ... >From what I have seen, the Given steps that check that the user is not authenticated