Re: [rspec-users] Restful Authentication and Cucumber

2008-12-08 Thread Alberto Perdomo
Hi Andrei, >>> This is the step: >>> >>> Given /I am logged in as a user/ do >>> @current_user = Factory.define :user do |u| >>>u.name 'the user' >>>u.email '[EMAIL PROTECTED]' >>>u.login 'the_login' >>>u.password 'password' >>>u.password_confirmation 'password' >>> end >>>

Re: [rspec-users] Restful Authentication and Cucumber

2008-11-28 Thread Matt Wynne
On 27 Nov 2008, at 23:38, Michael Guterl wrote: On Thu, Nov 27, 2008 at 12:58 AM, Andrei Erdoss <[EMAIL PROTECTED]> wrote: Hello, I am using Restful Authentication and I would like to login in Cucumber. I am having trouble keeping the user logged in. I tried finding a solution for this

Re: [rspec-users] Restful Authentication and Cucumber

2008-11-27 Thread Michael Guterl
On Thu, Nov 27, 2008 at 12:58 AM, Andrei Erdoss <[EMAIL PROTECTED]> wrote: > Hello, > > I am using Restful Authentication and I would like to login in Cucumber. I > am having trouble keeping the user logged in. I tried finding a solution for > this everywhere. Only source is this article: > http://

Re: [rspec-users] Restful Authentication and Cucumber

2008-11-27 Thread Andrei Erdoss
David, Thank you for your great insight. You're assumptions were correct and the user wasn't getting logged in, because I didn't add all the necessary paramenters for the user to be able to log in. I am checking if the user is being created and also if after login, there is a message posted, such

Re: [rspec-users] Restful Authentication and Cucumber

2008-11-27 Thread David Chelimsky
On Wed, Nov 26, 2008 at 11:58 PM, Andrei Erdoss <[EMAIL PROTECTED]> wrote: > Hello, > > I am using Restful Authentication and I would like to login in Cucumber. I > am having trouble keeping the user logged in. I tried finding a solution for > this everywhere. Only source is this article: > http://

[rspec-users] Restful Authentication and Cucumber

2008-11-26 Thread Andrei Erdoss
Hello, I am using Restful Authentication and I would like to login in Cucumber. I am having trouble keeping the user logged in. I tried finding a solution for this everywhere. Only source is this article: http://afreshcup.com/2008/10/09/authentication-in-cucumber-tests/ This is how my feature loo