The group you are posting to is a
Usenet group . Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
From:
Matias <tute.uni... @gmail.com>
Date: Fri, 12 Aug 2011 10:07:58 -0700 (PDT)
Local: Fri, Aug 12 2011 1:07 pm
Subject: Login_With
Im using rails 2.3.12 with Devise.
I create a helper:
def login_with(user)
visit "/users/sign_in"
fill_in "user_login", :with => user.email
fill_in "user_password", :with => user.password
click_on "Acceder"
end
And an acceptance test with:
let :user do
Factory.create :user
end
background do
login_with user
end
scenario "Promotor should see his money in the home panel" do
should_be_on user_panel
end
But the fail because the page is still users/sign_in. But the
misterious is that looking at page.body I doesn't see any error.
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Boris Barroso <boriscy... @gmail.com>
Date: Fri, 12 Aug 2011 13:38:12 -0400
Local: Fri, Aug 12 2011 1:38 pm
Subject: Re: [steakrb] Login_With
When you use devise with rspec and steak you should make some changes in your configuration. this is for rails3 https://github.com/plataformatec/devise/wiki/How-To:-Controllers-and-...
2011/8/12 Matias <tute.uni... @gmail.com>
> Im using rails 2.3.12 with Devise.
> I create a helper:
> def login_with(user) > visit "/users/sign_in" > fill_in "user_login", :with => user.email > fill_in "user_password", :with => user.password > click_on "Acceder" > end
> And an acceptance test with:
> let :user do > Factory.create :user > end
> background do > login_with user > end
> scenario "Promotor should see his money in the home panel" do > should_be_on user_panel > end
> But the fail because the page is still users/sign_in. But the > misterious is that looking at page.body I doesn't see any error.
--
Boris Barroso
*Senior Ruby on Rails, Javascript developer*
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Matias <tute.uni... @gmail.com>
Date: Fri, 12 Aug 2011 11:35:25 -0700 (PDT)
Local: Fri, Aug 12 2011 2:35 pm
Subject: Re: Login_With
That's only works for controllers, not acceptance test.
On 12 ago, 14:38, Boris Barroso <boriscy... @gmail.com> wrote:
> When you use devise with rspec and steak you should make some changes in
> your configuration.
> this is for rails3
https://github.com/plataformatec/devise/wiki/How-To:-Controllers-and- ...
> 2011/8/12 Matias <tute.uni... @gmail.com>
> > Im using rails 2.3.12 with Devise.
> > I create a helper:
> > def login_with(user)
> > visit "/users/sign_in"
> > fill_in "user_login", :with => user.email
> > fill_in "user_password", :with => user.password
> > click_on "Acceder"
> > end
> > And an acceptance test with:
> > let :user do
> > Factory.create :user
> > end
> > background do
> > login_with user
> > end
> > scenario "Promotor should see his money in the home panel" do
> > should_be_on user_panel
> > end
> > But the fail because the page is still users/sign_in. But the
> > misterious is that looking at page.body I doesn't see any error.
> --
> Boris Barroso
> *Senior Ruby on Rails, Javascript developer*
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Luismi Cavallé <lmcava... @gmail.com>
Date: Fri, 12 Aug 2011 21:46:08 +0200
Local: Fri, Aug 12 2011 3:46 pm
Subject: Re: [steakrb] Login_With
Devise (or any other authentication library) shouldn't be an issue here. Problem should be somewhere else. For instance, are you sure "user.password" returns the password of the user?
-- Luismi
On Aug 12, 2011, at 7:07 PM, Matias wrote:
> Im using rails 2.3.12 with Devise.
> I create a helper:
> def login_with(user) > visit "/users/sign_in" > fill_in "user_login", :with => user.email > fill_in "user_password", :with => user.password > click_on "Acceder" > end
> And an acceptance test with:
> let :user do > Factory.create :user > end
> background do > login_with user > end
> scenario "Promotor should see his money in the home panel" do > should_be_on user_panel > end
> But the fail because the page is still users/sign_in. But the > misterious is that looking at page.body I doesn't see any error.
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Matias <tute.uni... @gmail.com>
Date: Fri, 12 Aug 2011 13:17:26 -0700 (PDT)
Local: Fri, Aug 12 2011 4:17 pm
Subject: Re: Login_With
No, thats was my mistake. But even fixing that passing the real
password I still doesn't log_in. The weird thing is that I don't catch
any error when I look the page.body after click_button "Acceder".
On Aug 12, 4:46 pm, Luismi Cavallé <lmcava... @gmail.com> wrote:
> Devise (or any other authentication library) shouldn't be an issue here. Problem should be somewhere else. For instance, are you sure "user.password" returns the password of the user?
> -- Luismi
> On Aug 12, 2011, at 7:07 PM, Matias wrote:
> > Im using rails 2.3.12 with Devise.
> > I create a helper:
> > def login_with(user)
> > visit "/users/sign_in"
> > fill_in "user_login", :with => user.email
> > fill_in "user_password", :with => user.password
> > click_on "Acceder"
> > end
> > And an acceptance test with:
> > let :user do
> > Factory.create :user
> > end
> > background do
> > login_with user
> > end
> > scenario "Promotor should see his money in the home panel" do
> > should_be_on user_panel
> > end
> > But the fail because the page is still users/sign_in. But the
> > misterious is that looking at page.body I doesn't see any error.
You must
Sign in before you can post messages.
You do not have the permission required to post.
From:
Matias <tute.uni... @gmail.com>
Date: Fri, 12 Aug 2011 14:42:14 -0700 (PDT)
Local: Fri, Aug 12 2011 5:42 pm
Subject: Re: Login_With
Why is so complicated to test with this gems!?
On Aug 12, 5:17 pm, Matias <tute.uni... @gmail.com> wrote:
> No, thats was my mistake. But even fixing that passing the real
> password I still doesn't log_in. The weird thing is that I don't catch
> any error when I look the page.body after click_button "Acceder".
> On Aug 12, 4:46 pm, Luismi Cavallé <lmcava... @gmail.com> wrote:
> > Devise (or any other authentication library) shouldn't be an issue here. Problem should be somewhere else. For instance, are you sure "user.password" returns the password of the user?
> > -- Luismi
> > On Aug 12, 2011, at 7:07 PM, Matias wrote:
> > > Im using rails 2.3.12 with Devise.
> > > I create a helper:
> > > def login_with(user)
> > > visit "/users/sign_in"
> > > fill_in "user_login", :with => user.email
> > > fill_in "user_password", :with => user.password
> > > click_on "Acceder"
> > > end
> > > And an acceptance test with:
> > > let :user do
> > > Factory.create :user
> > > end
> > > background do
> > > login_with user
> > > end
> > > scenario "Promotor should see his money in the home panel" do
> > > should_be_on user_panel
> > > end
> > > But the fail because the page is still users/sign_in. But the
> > > misterious is that looking at page.body I doesn't see any error.
You must
Sign in before you can post messages.
You do not have the permission required to post.