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.
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.
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):
> 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 > <mailto: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.
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ó:
> 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):
> 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.
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ó:
> 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ó:
>> 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):
>> 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.