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
Using vcr selectively within a project
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
  3 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
 
Karl  
View profile  
 More options Nov 9 2010, 3:40 pm
From: Karl <karl.b...@gmail.com>
Date: Tue, 9 Nov 2010 12:40:46 -0800 (PST)
Local: Tues, Nov 9 2010 3:40 pm
Subject: Using vcr selectively within a project
Many of my existing cucumber features already make http requests and
although i would like to eventually refactor them, for now they work.
The problem is that when i try to use vcr on just one test within my
suite, vcr breaks the other tests with: "Real HTTP connections are
disabled".

Any way to use vcr selectively?

thx.

-karl


 
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.
Myron Marston  
View profile  
 More options Nov 9 2010, 4:27 pm
From: Myron Marston <myron.mars...@gmail.com>
Date: Tue, 9 Nov 2010 13:27:47 -0800 (PST)
Local: Tues, Nov 9 2010 4:27 pm
Subject: Re: Using vcr selectively within a project
 On Nov 9, 12:40 pm, Karl <karl.b...@gmail.com> wrote:

> Many of my existing cucumber features already make http requests and
> although i would like to eventually refactor them, for now they work.
> The problem is that when i try to use vcr on just one test within my
> suite, vcr breaks the other tests with: "Real HTTP connections are
> disabled".

> Any way to use vcr selectively?

> thx.

> -karl

Hey Karl,

Excellent question.  There are ways of doing this, but it's not well
documented or supported yet.  There's a discussion on github[1] about
an API that would explicitly allow this.  Can you stop by and give
your feedback about how this should work?

In the meantime, you can try this:

VCR.http_stubbing_adapter.http_connections_allowed = true

Put this after your VCR.config block, and it should do the trick.

Note that this is not a documented, supported public API of VCR, so it
is subject to change (especially later on when we do add a document
public API for this).  Use with care.

Myron

[1] https://github.com/myronmarston/vcr/issues/21


 
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.
Karl Baum  
View profile  
 More options Nov 9 2010, 4:57 pm
From: Karl Baum <karl.b...@gmail.com>
Date: Tue, 9 Nov 2010 16:57:10 -0500
Local: Tues, Nov 9 2010 4:57 pm
Subject: Re: Using vcr selectively within a project
That seems to work.  Commented on the github issue too.  Thanks!
On Nov 9, 2010, at 4:27 PM, Myron Marston 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 »