Open 23tux opened 11 years ago
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.
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.