Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VCR cassette naming #3

Open
23tux opened this issue Mar 19, 2013 · 1 comment
Open

VCR cassette naming #3

23tux opened this issue Mar 19, 2013 · 1 comment

Comments

@23tux
Copy link
Owner

23tux commented Mar 19, 2013

At the current version, the name of the cassette is fixed. Any clever idea, how to make the cassettes configurable?

For example: If I have a lot of ajax requests going to a lot of different endpoints, everything get's recorded into the same name.

@oliverbarnes
Copy link

Also came across this. FWIW, in case it inspires any other ideas, I tried appending Thread.list.count to the cassette name:

VCR.use_cassette("records#{Thread.list.count}") do

Which allows recording several cassettes, but still there were conflicts. Tried wrapping the recording and service request in a mutex, but that made the test super slow, leading to connection refused errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants