Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Login_With
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
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:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Matias  
View profile  
 More options Aug 12 2011, 1:07 pm
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.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Boris Barroso  
View profile  
 More options Aug 12 2011, 1:38 pm
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>

--
Boris Barroso
*Senior Ruby on Rails, Javascript developer*

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matias  
View profile  
 More options Aug 12 2011, 2:35 pm
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:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Luismi Cavallé  
View profile  
 More options Aug 12 2011, 3:46 pm
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:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matias  
View profile  
 More options Aug 12 2011, 4:17 pm
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:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matias  
View profile  
 More options Aug 12 2011, 5:42 pm
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:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »