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
How to prevent Capybara from resetting the session between Rspec examples?
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
  5 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
 
Rodrigo Rosenfeld Rosas  
View profile  
 More options May 18 2012, 11:18 am
From: Rodrigo Rosenfeld Rosas <rr.ro...@gmail.com>
Date: Fri, 18 May 2012 12:18:36 -0300
Local: Fri, May 18 2012 11:18 am
Subject: How to prevent Capybara from resetting the session between Rspec examples?
when requiring 'rspec/rails', it will require 'capybara/rspec', which
will call reset_session! after each example.

How can I prevent that from happening? I'd like to authenticate only
once per context as it takes about 2.5s just to authenticate using the
:webkit driver.

Thanks in advance,
Rodrigo.


 
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.
Dev Ram  
View profile  
 More options Jun 4 2012, 4:01 am
From: Dev Ram <devra...@gmail.com>
Date: Mon, 4 Jun 2012 13:31:12 +0530
Local: Mon, Jun 4 2012 4:01 am
Subject: Re: [Capybara] How to prevent Capybara from resetting the session between Rspec examples?

Hi,

Have u been able to override the method, cause I don't believe u can do
that. Other option would be comment out the method in the .lib. but that's
a horrible way basically hacking and there are pit falls to that approach.

Cheers and let us know if u were able to accomplish it without having to
comment out the actual method.

Dave

On May 19, 2012 1:18 AM, "Rodrigo Rosenfeld Rosas" <rr.ro...@gmail.com>
wrote:

> when requiring 'rspec/rails', it will require 'capybara/rspec', which

will call reset_session! after each example.

> How can I prevent that from happening? I'd like to authenticate only once

per context as it takes about 2.5s just to authenticate using the :webkit
driver.


 
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.
Rodrigo Rosenfeld Rosas  
View profile  
 More options Jun 4 2012, 8:00 am
From: Rodrigo Rosenfeld Rosas <rr.ro...@gmail.com>
Date: Mon, 04 Jun 2012 09:00:08 -0300
Local: Mon, Jun 4 2012 8:00 am
Subject: Re: [Capybara] How to prevent Capybara from resetting the session between Rspec examples?

That was a long time ago, but I guess I could identify where the method
was defined and I could override it.

If I remember correctly it was an alias to reset!. But I wanted to be
able o call reset! manually and I guess I needed to run it at least once
or it wouldn't work.

I'm not sure why I stopped trying and asked for help here, but currently
I'm no longer writing full integration tests and using this instead (it
was painfully slow so I gave up):

http://rosenfeld.herokuapp.com/en/articles/programming/2012-06-03-cli...

Em 04-06-2012 05:01, Dev Ram escreveu:


 
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.
Rodrigo Martin  
View profile   Translate to Translated (View Original)
 More options Jul 10 2012, 1:39 pm
From: Rodrigo Martin <adi...@gmail.com>
Date: Tue, 10 Jul 2012 10:39:07 -0700 (PDT)
Local: Tues, Jul 10 2012 1:39 pm
Subject: Re: [Capybara] How to prevent Capybara from resetting the session between Rspec examples?

Hello everyone, I would need to address the same, that is to NOT reset the
session between examples. Are you suggesting that an alias to reset! would
work?

El lunes, 4 de junio de 2012 09:00:08 UTC-3, Rodrigo Rosenfeld Rosas
escribió:


 
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.
Rodrigo Martin  
View profile  
 More options Jul 11 2012, 8:08 am
From: Rodrigo Martin <adi...@gmail.com>
Date: Wed, 11 Jul 2012 05:08:04 -0700 (PDT)
Local: Wed, Jul 11 2012 8:08 am
Subject: Re: [Capybara] How to prevent Capybara from resetting the session between Rspec examples?

Well, finally I was able to do this by not requiring "capybara/rspec" and
adding the same lines of code to the spec_helper while configuring Rspec
(and commenting that line out.)

Regards,
Rodrigo.

El martes, 10 de julio de 2012 14:39:07 UTC-3, Rodrigo Martin escribió:


 
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 »